Merge pull request #179752 from hqurve/cantor

init labplot, cantor and supporting libraries

authored by

Sandro and committed by
GitHub
05b1a973 518a791e

+256
+34
pkgs/applications/kde/analitza.nix
··· 1 + { lib 2 + , mkDerivation 3 + , cmake 4 + , extra-cmake-modules 5 + , qtbase 6 + , qtsvg 7 + , eigen 8 + , kdoctools 9 + , qttools 10 + }: 11 + 12 + mkDerivation { 13 + pname = "analitza"; 14 + 15 + nativeBuildInputs = [ 16 + cmake 17 + eigen 18 + extra-cmake-modules 19 + kdoctools 20 + qttools 21 + ]; 22 + 23 + buildInputs = [ 24 + qtbase 25 + qtsvg 26 + ]; 27 + 28 + meta = with lib; { 29 + description = "Front end to powerful mathematics and statistics packages"; 30 + homepage = "https://cantor.kde.org/"; 31 + license = with licenses; [ gpl2Only lgpl2Only fdl12Only ]; 32 + maintainers = with maintainers; [ hqurve ]; 33 + }; 34 + }
+109
pkgs/applications/kde/cantor.nix
··· 1 + { lib 2 + , mkDerivation 3 + 4 + , cmake 5 + , extra-cmake-modules 6 + , makeWrapper 7 + , shared-mime-info 8 + 9 + , qtbase 10 + , qtsvg 11 + , qttools 12 + , qtwebengine 13 + , qtxmlpatterns 14 + 15 + , poppler 16 + 17 + , karchive 18 + , kcompletion 19 + , kconfig 20 + , kcoreaddons 21 + , kcrash 22 + , kdoctools 23 + , ki18n 24 + , kiconthemes 25 + , kio 26 + , knewstuff 27 + , kparts 28 + , kpty 29 + , ktexteditor 30 + , ktextwidgets 31 + , kxmlgui 32 + , syntax-highlighting 33 + 34 + , libspectre 35 + 36 + # Backends. Set to null if you want to omit from the build 37 + , withAnalitza ? true, analitza 38 + , wtihJulia ? true, julia 39 + , withQalculate ? true, libqalculate 40 + , withLua ? true, luajit 41 + , withPython ? true, python3 42 + , withR ? true, R 43 + , withSage ? true, sage, sage-with-env ? sage.with-env 44 + }: 45 + 46 + mkDerivation { 47 + pname = "cantor"; 48 + 49 + nativeBuildInputs = [ 50 + cmake 51 + extra-cmake-modules 52 + makeWrapper 53 + shared-mime-info 54 + qttools 55 + ]; 56 + 57 + buildInputs = [ 58 + qtbase 59 + qtsvg 60 + qtwebengine 61 + qtxmlpatterns 62 + 63 + poppler 64 + 65 + karchive 66 + kcompletion 67 + kconfig 68 + kcoreaddons 69 + kcrash 70 + kdoctools 71 + ki18n 72 + kiconthemes 73 + kio 74 + knewstuff 75 + kparts 76 + kpty 77 + ktexteditor 78 + ktextwidgets 79 + kxmlgui 80 + syntax-highlighting 81 + 82 + libspectre 83 + ] 84 + # backends 85 + ++ lib.optional withAnalitza analitza 86 + ++ lib.optional wtihJulia julia 87 + ++ lib.optional withQalculate libqalculate 88 + ++ lib.optional withLua luajit 89 + ++ lib.optional withPython python3 90 + ++ lib.optional withR R 91 + ++ lib.optional withSage sage-with-env 92 + ; 93 + 94 + qtWrapperArgs = [ 95 + "--prefix PATH : ${placeholder "out"}/bin" 96 + ]; 97 + 98 + postInstall = lib.optionalString withSage '' 99 + wrapProgram $out/share/cantor/sagebackend/cantor-execsage \ 100 + --prefix PATH : ${sage-with-env}/bin 101 + ''; 102 + 103 + meta = with lib; { 104 + description = "Front end to powerful mathematics and statistics packages"; 105 + homepage = "https://cantor.kde.org/"; 106 + license = with licenses; [ bsd3 cc0 gpl2Only gpl2Plus gpl3Only ]; 107 + maintainers = with maintainers; [ hqurve ]; 108 + }; 109 + }
+2
pkgs/applications/kde/default.nix
··· 72 72 akonadi-search = callPackage ./akonadi-search.nix {}; 73 73 akonadiconsole = callPackage ./akonadiconsole.nix {}; 74 74 akregator = callPackage ./akregator.nix {}; 75 + analitza = callPackage ./analitza.nix {}; 75 76 ark = callPackage ./ark {}; 76 77 baloo-widgets = callPackage ./baloo-widgets.nix {}; 77 78 bomber = callPackage ./bomber.nix {}; 78 79 bovo = callPackage ./bovo.nix {}; 79 80 calendarsupport = callPackage ./calendarsupport.nix {}; 80 81 colord-kde = callPackage ./colord-kde.nix {}; 82 + cantor = callPackage ./cantor.nix {}; 81 83 dolphin = callPackage ./dolphin.nix {}; 82 84 dolphin-plugins = callPackage ./dolphin-plugins.nix {}; 83 85 dragon = callPackage ./dragon.nix {};
+106
pkgs/applications/science/math/labplot/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , cmake 5 + , extra-cmake-modules 6 + , shared-mime-info 7 + , wrapQtAppsHook 8 + 9 + , qtbase 10 + 11 + , karchive 12 + , kcompletion 13 + , kconfig 14 + , kcoreaddons 15 + , kcrash 16 + , kdoctools 17 + , ki18n 18 + , kiconthemes 19 + , kio 20 + , knewstuff 21 + , kparts 22 + , ktextwidgets 23 + , kxmlgui 24 + , syntax-highlighting 25 + 26 + , gsl 27 + 28 + , poppler 29 + , fftw 30 + , hdf5 31 + , netcdf 32 + , cfitsio 33 + , libcerf 34 + , cantor 35 + , zlib 36 + , lz4 37 + , readstat 38 + , matio 39 + , qtserialport 40 + , discount 41 + }: 42 + 43 + stdenv.mkDerivation rec { 44 + pname = "labplot"; 45 + version = "2.10.0"; 46 + 47 + src = fetchurl { 48 + url = "https://download.kde.org/stable/labplot/labplot-${version}.tar.xz"; 49 + sha256 = "sha256-XfxnQxCQSkOHXWnj4mCh/t2WjmwbHs2rp1WrGqOMupA="; 50 + }; 51 + 52 + cmakeFlags = [ 53 + # Disable Vector BLF since it depends on DBC parser which fails to be detected 54 + "-DENABLE_VECTOR_BLF=OFF" 55 + ]; 56 + 57 + nativeBuildInputs = [ 58 + cmake 59 + extra-cmake-modules 60 + shared-mime-info 61 + wrapQtAppsHook 62 + ]; 63 + 64 + buildInputs = [ 65 + qtbase 66 + 67 + karchive 68 + kcompletion 69 + kconfig 70 + kcoreaddons 71 + kcrash 72 + kdoctools 73 + ki18n 74 + kiconthemes 75 + kio 76 + knewstuff 77 + kparts 78 + ktextwidgets 79 + kxmlgui 80 + 81 + syntax-highlighting 82 + gsl 83 + 84 + poppler 85 + fftw 86 + hdf5 87 + netcdf 88 + cfitsio 89 + libcerf 90 + cantor 91 + zlib 92 + lz4 93 + readstat 94 + matio 95 + qtserialport 96 + discount 97 + ]; 98 + 99 + meta = with lib; { 100 + description = "LabPlot is a FREE, open source and cross-platform Data Visualization and Analysis software accessible to everyone"; 101 + homepage = "https://labplot.kde.org"; 102 + license = with licenses; [ asl20 bsd3 cc-by-30 cc0 gpl2Only gpl2Plus gpl3Only gpl3Plus lgpl3Plus mit ]; 103 + maintainers = with maintainers; [ hqurve ]; 104 + platforms = platforms.unix; 105 + }; 106 + }
+1
pkgs/applications/science/math/sage/sage.nix
··· 49 49 quicktest = sage-tests.override { longTests = false; timeLimit = 600; }; # as many tests as possible in ~10m 50 50 doc = sagedoc; 51 51 lib = sage-with-env.env.lib; 52 + with-env = sage-with-env; 52 53 kernelspec = jupyter-kernel-definition; 53 54 }; 54 55
+4
pkgs/top-level/all-packages.nix
··· 37514 37514 37515 37515 brial = callPackage ../development/libraries/science/math/brial { }; 37516 37516 37517 + cantor = libsForQt5.cantor; 37518 + 37517 37519 clblas = callPackage ../development/libraries/science/math/clblas { 37518 37520 inherit (darwin.apple_sdk.frameworks) Accelerate CoreGraphics CoreVideo OpenCL; 37519 37521 }; ··· 37531 37533 gurobi = callPackage ../applications/science/math/gurobi { }; 37532 37534 37533 37535 jags = callPackage ../applications/science/math/jags { }; 37536 + 37537 + labplot = libsForQt5.callPackage ../applications/science/math/labplot { }; 37534 37538 37535 37539 lapack = callPackage ../build-support/alternatives/lapack { }; 37536 37540