Unverified Commit a2708c1b authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

treewide: migrate qcsxcad/appcsxcad to qt6 and pkgs/by-name (#440165)

parents 9d00a7d6 10d80dc1
Loading
Loading
Loading
Loading
+16 −14
Original line number Diff line number Diff line
{
  lib,
  mkDerivation,
  stdenv,
  fetchFromGitHub,
  cmake,
  csxcad,
  qcsxcad,
  hdf5,
  vtkWithQt5,
  qtbase,
  vtkWithQt6,
  qt6,
  fparser,
  tinyxml,
  cgal,
  boost,
}:

mkDerivation {
stdenv.mkDerivation (finalAttrs: {
  pname = "appcsxcad";
  version = "unstable-2023-01-06";
  version = "0.2.3";

  src = fetchFromGitHub {
    owner = "thliebig";
    repo = "AppCSXCAD";
    rev = "379ede4b8e00c11e8d0fb724c35547991b30c423";
    hash = "sha256-L0ZEyovnfMzM7JuITBuhb4tJ2Aqgw52IiKEfEGq7Yo0=";
    rev = "v${finalAttrs.version}";
    hash = "sha256-KrsnCnRZRTbkgEH3hOETrYhseg5mCHPqhAbYyHlS3sk=";
  };

  nativeBuildInputs = [
    cmake
    qt6.wrapQtAppsHook
  ];

  buildInputs = [
    csxcad
    qcsxcad
    hdf5
    vtkWithQt5
    qtbase
    vtkWithQt6
    qt6.qtbase
    qt6.qtwayland
    fparser
    tinyxml
    cgal
@@ -45,12 +47,12 @@ mkDerivation {
    rm $out/bin/AppCSXCAD.sh
  '';

  meta = with lib; {
  meta = {
    description = "Minimal Application using the QCSXCAD library";
    mainProgram = "AppCSXCAD";
    homepage = "https://github.com/thliebig/AppCSXCAD";
    license = licenses.gpl3;
    maintainers = with maintainers; [ matthuszagh ];
    platforms = platforms.linux;
    license = lib.licenses.gpl3;
    maintainers = with lib.maintainers; [ matthuszagh ];
    platforms = lib.platforms.linux;
  };
}
})
+54 −0
Original line number Diff line number Diff line
{
  lib,
  mkDerivation,
  stdenv,
  fetchFromGitHub,
  cmake,
  csxcad,
  tinyxml,
  vtkWithQt5,
  qtbase,
  vtkWithQt6,
  qt6,
}:

mkDerivation {
stdenv.mkDerivation (finalAttrs: {
  pname = "qcsxcad";
  version = "unstable-2023-01-06";
  version = "0.6.3";

  src = fetchFromGitHub {
    owner = "thliebig";
    repo = "QCSXCAD";
    rev = "1cde9d560a5000f4c24c249d2dd5ccda12de38b6";
    hash = "sha256-kc9Vnx6jGiQC2K88ZH00b61D/DbWxAIZZwYCsINqtrY=";
    tag = "v${finalAttrs.version}";
    hash = "sha256-bX6e3ugHJynU9tP70BV8TadnoGg1VO7SAYJueMkMAyo=";
  };

  outputs = [
@@ -30,22 +30,25 @@ mkDerivation {
  ];

  cmakeFlags = [
    "-DCSXCAD_ROOT_DIR=${csxcad}"
    "-DENABLE_RPATH=OFF"
    (lib.cmakeBool "ENABLE_RPATH" false)
  ];

  buildInputs = [
    csxcad
    tinyxml
    vtkWithQt5
    qtbase
    vtkWithQt6
    qt6.qtbase
    qt6.qt5compat
    qt6.qtwayland
  ];

  meta = with lib; {
  dontWrapQtApps = true;

  meta = {
    description = "Qt library for CSXCAD";
    homepage = "https://github.com/thliebig/QCSXCAD";
    license = licenses.gpl3;
    maintainers = with maintainers; [ matthuszagh ];
    platforms = platforms.linux;
    license = lib.licenses.gpl3;
    maintainers = with lib.maintainers; [ matthuszagh ];
    platforms = lib.platforms.linux;
  };
}
})
+0 −1
Original line number Diff line number Diff line
@@ -2043,7 +2043,6 @@ mapAliases {

  qbittorrent-qt5 = throw "'qbittorrent-qt5' has been removed as qBittorrent 5 dropped support for Qt 5. Please use 'qbittorrent'"; # Added 2024-09-30
  qcachegrind = throw "'qcachegrind' has been removed, as it depends on KDE Gear 5, which has reached EOL"; # Added 2025-08-20
  qcsxcad = throw "'qcsxcad' has been renamed to/replaced by 'libsForQt5.qcsxcad'"; # Converted to throw 2024-10-17
  qflipper = qFlipper; # Added 2022-02-11
  qnial = throw "'qnial' has been removed due to failing to build and being unmaintained"; # Added 2025-06-26
  qscintilla = libsForQt5.qscintilla; # Added 2023-09-20
+1 −5
Original line number Diff line number Diff line
@@ -14717,8 +14717,6 @@ with pkgs;

  ### SCIENCE / ELECTRONICS

  appcsxcad = libsForQt5.callPackage ../applications/science/electronics/appcsxcad { };

  simulide_0_4_15 = callPackage ../by-name/si/simulide/package.nix { versionNum = "0.4.15"; };
  simulide_1_0_0 = callPackage ../by-name/si/simulide/package.nix { versionNum = "1.0.0"; };
  simulide_1_1_0 = callPackage ../by-name/si/simulide/package.nix { versionNum = "1.1.0"; };
@@ -14776,9 +14774,7 @@ with pkgs;
    withNgshared = false;
  };

  openems = callPackage ../applications/science/electronics/openems {
    qcsxcad = libsForQt5.qcsxcad;
  };
  openems = callPackage ../applications/science/electronics/openems { };

  xyce-parallel = callPackage ../by-name/xy/xyce/package.nix {
    withMPI = true;
+0 −2
Original line number Diff line number Diff line
@@ -165,8 +165,6 @@ makeScopeWithSplicing' {

        qcoro = callPackage ../development/libraries/qcoro { };

        qcsxcad = callPackage ../development/libraries/science/electronics/qcsxcad { };

        qcustomplot = callPackage ../development/libraries/qcustomplot { };

        qjson = callPackage ../development/libraries/qjson { };
Loading