summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/la/labplot/package.nix
blob: 83fb62803d2cf88ab44e7042e89490fb226ad037 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
  lib,
  stdenv,
  fetchurl,
  fetchpatch,
  cmake,
  pkg-config,
  kdePackages,
  qt6,
  shared-mime-info,
  bison,
  flex,

  gsl,

  poppler,
  fftw,
  hdf5,
  netcdf,
  cfitsio,
  libcerf,
  zlib,
  lz4,
  readstat,
  matio,
  discount,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "labplot";
  version = "2.12.1";

  src = fetchurl {
    url = "mirror://kde/stable/labplot/labplot-${finalAttrs.version}.tar.xz";
    hash = "sha256-4oFVv930DltvfEeRMTVW0eSBOARPIW8hDVFbn21sEGo=";
  };

  patches = [
    # backport build fix
    # FIXME: remove in next update
    (fetchpatch {
      url = "https://invent.kde.org/education/labplot/-/commit/c2db2ec28aa8958f7041ae5cd03ddae9f44e5aa3.diff";
      hash = "sha256-0biKZXWMs5y1U9phAivEAbd2N4C/CiOKvk/QRAaPimo=";
    })
  ];

  cmakeFlags = [
    "-DQT_FIND_PRIVATE_MODULES=ON"
  ];

  nativeBuildInputs = [
    cmake
    pkg-config
    kdePackages.extra-cmake-modules
    shared-mime-info
    bison
    flex
    qt6.wrapQtAppsHook
  ];

  buildInputs = [
    qt6.qtbase

    kdePackages.karchive
    kdePackages.kcompletion
    kdePackages.kconfig
    kdePackages.kcoreaddons
    kdePackages.kcrash
    kdePackages.kdoctools
    kdePackages.ki18n
    kdePackages.kiconthemes
    kdePackages.kio
    kdePackages.knewstuff
    kdePackages.kparts
    kdePackages.ktextwidgets
    kdePackages.kxmlgui

    kdePackages.syntax-highlighting
    gsl

    kdePackages.poppler
    fftw
    hdf5
    netcdf
    cfitsio
    libcerf
    kdePackages.cantor
    zlib
    lz4
    readstat
    matio
    qt6.qtserialport
    discount
  ];

  meta = {
    description = "Free, open source and cross-platform data visualization and analysis software accessible to everyone";
    homepage = "https://labplot.kde.org";
    license = with lib.licenses; [
      asl20
      bsd3
      cc-by-30
      cc0
      gpl2Only
      gpl2Plus
      gpl3Only
      gpl3Plus
      lgpl3Plus
      mit
    ];
    maintainers = [ ];
    mainProgram = "labplot2";
    platforms = lib.platforms.unix;
  };
})