2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2024-06-05 15:53:02 +00:00
|
|
|
, fetchpatch
|
2023-05-24 13:37:59 +00:00
|
|
|
, fetchurl
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
|
|
|
, shared-mime-info
|
|
|
|
, wrapQtAppsHook
|
|
|
|
|
|
|
|
, qtbase
|
|
|
|
|
|
|
|
, karchive
|
|
|
|
, kcompletion
|
|
|
|
, kconfig
|
|
|
|
, kcoreaddons
|
|
|
|
, kcrash
|
|
|
|
, kdoctools
|
|
|
|
, ki18n
|
|
|
|
, kiconthemes
|
|
|
|
, kio
|
|
|
|
, knewstuff
|
|
|
|
, kparts
|
|
|
|
, ktextwidgets
|
|
|
|
, kxmlgui
|
|
|
|
, syntax-highlighting
|
|
|
|
|
|
|
|
, gsl
|
|
|
|
|
|
|
|
, poppler
|
|
|
|
, fftw
|
|
|
|
, hdf5
|
|
|
|
, netcdf
|
|
|
|
, cfitsio
|
|
|
|
, libcerf
|
|
|
|
, cantor
|
|
|
|
, zlib
|
|
|
|
, lz4
|
|
|
|
, readstat
|
|
|
|
, matio
|
|
|
|
, qtserialport
|
|
|
|
, discount
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "labplot";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "2.10.1";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-01-02 11:29:13 +00:00
|
|
|
url = "mirror://kde/stable/labplot/labplot-${version}.tar.xz";
|
2023-08-04 22:07:22 +00:00
|
|
|
sha256 = "sha256-K24YFRfPtuDf/3uJXz6yDHzjWeZzLThUXgdXya6i2u8=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
# Disable Vector BLF since it depends on DBC parser which fails to be detected
|
|
|
|
"-DENABLE_VECTOR_BLF=OFF"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "matio-fix-compilation-for-latest-version-1.5.27.patch";
|
|
|
|
url = "https://github.com/KDE/labplot/commit/d6142308ffa492d9f7cea00fad3b4cd1babfd00c.patch";
|
|
|
|
hash = "sha256-qD5jj6GxBKbQezKJb1Z8HnwFO84WJBGQDawS/6o/wHE=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
extra-cmake-modules
|
|
|
|
shared-mime-info
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
|
|
|
|
karchive
|
|
|
|
kcompletion
|
|
|
|
kconfig
|
|
|
|
kcoreaddons
|
|
|
|
kcrash
|
|
|
|
kdoctools
|
|
|
|
ki18n
|
|
|
|
kiconthemes
|
|
|
|
kio
|
|
|
|
knewstuff
|
|
|
|
kparts
|
|
|
|
ktextwidgets
|
|
|
|
kxmlgui
|
|
|
|
|
|
|
|
syntax-highlighting
|
|
|
|
gsl
|
|
|
|
|
|
|
|
poppler
|
|
|
|
fftw
|
|
|
|
hdf5
|
|
|
|
netcdf
|
|
|
|
cfitsio
|
|
|
|
libcerf
|
|
|
|
cantor
|
|
|
|
zlib
|
|
|
|
lz4
|
|
|
|
readstat
|
|
|
|
matio
|
|
|
|
qtserialport
|
|
|
|
discount
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "LabPlot is a FREE, open source and cross-platform Data Visualization and Analysis software accessible to everyone";
|
|
|
|
homepage = "https://labplot.kde.org";
|
|
|
|
license = with licenses; [ asl20 bsd3 cc-by-30 cc0 gpl2Only gpl2Plus gpl3Only gpl3Plus lgpl3Plus mit ];
|
|
|
|
maintainers = with maintainers; [ hqurve ];
|
|
|
|
mainProgram = "labplot2";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|