summary refs log tree commit diff
path: root/pkgs/tools/X11/ncview/default.nix
blob: fcfb6661f31014a409bfc2490ba1c6ceef4866f0 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{ lib
, stdenv
, fetchurl
, expat
, libpng
, udunits
, netcdf
, xorg
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "ncview";
  version = "2.1.9";

  src = fetchurl {
    url = "https://cirrus.ucsd.edu/~pierce/ncview/ncview-${finalAttrs.version}.tar.gz";
    hash = "sha256-4jF6wJSvYvCtz2hCHXBlgglDaq40RkCVnsiXWmRYka8=";
  };

  strictDeps = true;

  nativeBuildInputs = [
    netcdf
  ];

  buildInputs = [
    expat
    libpng
    netcdf
    udunits
    xorg.libICE
    xorg.libSM
    xorg.libX11
    xorg.libXaw
    xorg.libXt
  ];

  meta = with lib; {
    description = "Visual browser for netCDF format files";
    homepage = "http://meteora.ucsd.edu/~pierce/ncview_home_page.html";
    license = licenses.gpl3Plus;
    mainProgram = "ncview";
    maintainers = with maintainers; [ jmettes ];
    platforms = platforms.all;
  };
})