1{
2 lib,
3 stdenv,
4 fetchpatch,
5 fetchurl,
6 cmake,
7 extra-cmake-modules,
8 shared-mime-info,
9 wrapQtAppsHook,
10
11 qtbase,
12
13 karchive,
14 kcompletion,
15 kconfig,
16 kcoreaddons,
17 kcrash,
18 kdoctools,
19 ki18n,
20 kiconthemes,
21 kio,
22 knewstuff,
23 kparts,
24 ktextwidgets,
25 kxmlgui,
26 syntax-highlighting,
27
28 gsl,
29
30 poppler,
31 fftw,
32 hdf5,
33 netcdf,
34 cfitsio,
35 libcerf,
36 # cantor,
37 zlib,
38 lz4,
39 readstat,
40 matio,
41 qtserialport,
42 discount,
43}:
44
45stdenv.mkDerivation rec {
46 pname = "labplot";
47 version = "2.10.1";
48
49 src = fetchurl {
50 url = "mirror://kde/stable/labplot/labplot-${version}.tar.xz";
51 sha256 = "sha256-K24YFRfPtuDf/3uJXz6yDHzjWeZzLThUXgdXya6i2u8=";
52 };
53
54 cmakeFlags = [
55 # Disable Vector BLF since it depends on DBC parser which fails to be detected
56 "-DENABLE_VECTOR_BLF=OFF"
57 ];
58
59 patches = [
60 (fetchpatch {
61 name = "matio-fix-compilation-for-latest-version-1.5.27.patch";
62 url = "https://github.com/KDE/labplot/commit/d6142308ffa492d9f7cea00fad3b4cd1babfd00c.patch";
63 hash = "sha256-qD5jj6GxBKbQezKJb1Z8HnwFO84WJBGQDawS/6o/wHE=";
64 })
65 ];
66
67 nativeBuildInputs = [
68 cmake
69 extra-cmake-modules
70 shared-mime-info
71 wrapQtAppsHook
72 ];
73
74 buildInputs = [
75 qtbase
76
77 karchive
78 kcompletion
79 kconfig
80 kcoreaddons
81 kcrash
82 kdoctools
83 ki18n
84 kiconthemes
85 kio
86 knewstuff
87 kparts
88 ktextwidgets
89 kxmlgui
90
91 syntax-highlighting
92 gsl
93
94 poppler
95 fftw
96 hdf5
97 netcdf
98 cfitsio
99 libcerf
100 # cantor
101 zlib
102 lz4
103 readstat
104 matio
105 qtserialport
106 discount
107 ];
108
109 meta = with lib; {
110 description = "Free, open source and cross-platform data visualization and analysis software accessible to everyone";
111 homepage = "https://labplot.kde.org";
112 license = with licenses; [
113 asl20
114 bsd3
115 cc-by-30
116 cc0
117 gpl2Only
118 gpl2Plus
119 gpl3Only
120 gpl3Plus
121 lgpl3Plus
122 mit
123 ];
124 maintainers = with maintainers; [ hqurve ];
125 mainProgram = "labplot2";
126 platforms = platforms.unix;
127 };
128}