summary refs log tree commit diff
path: root/pkgs/tools/graphics/kst/default.nix
blob: 480ae328cd38b4d194898081f00146e8aef65895 (plain) (blame)
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
{ stdenv, fetchurl, cmake, pkgconfig
, qtbase, gsl, getdata, netcdf, muparser, matio
}:
stdenv.mkDerivation rec {
  name = "Kst-2.0.8";
  src = fetchurl {
    url = "mirror://sourceforge/kst/${name}.tar.gz";
    sha256 = "1ihqmwqw0h2p7hn5shd8iwb0gd4axybs60lgw22ijxqh6wzgvyyf";
  };

  nativeBuildInputs = [ cmake pkgconfig ];
  buildInputs = [ qtbase gsl getdata netcdf muparser matio ];

  cmakeFlags = [ "-Dkst_qt5=1" "-Dkst_release=1" ];

  postInstall = ''
    mkdir -p $out
    for d in bin lib share
    do
      cp -r INSTALLED/$d $out/
    done
  '';

  meta = with stdenv.lib; {
    description = "Real-time large-dataset viewing and plotting tool";
    homepage = https://kst-plot.kde.org/;
    license = licenses.gpl2;
    platforms = platforms.all;
    maintainers = [ maintainers.vbgl ];
    broken = true;
  };
}