diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-10-04 16:54:20 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2023-10-05 08:41:49 +0200 |
commit | 3e32871bf04132be9ffb0281b9a0be5849339218 (patch) | |
tree | cb5309d359f8c61138fdb22b08f6595981233f5f /pkgs/tools/X11 | |
parent | 47db6b44173e3360cb2339f5acda13db04f72ae9 (diff) |
ncview: refactor
Diffstat (limited to 'pkgs/tools/X11')
-rw-r--r-- | pkgs/tools/X11/ncview/default.nix | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/pkgs/tools/X11/ncview/default.nix b/pkgs/tools/X11/ncview/default.nix index 2b2aac5f66b07..e06962f2a67d7 100644 --- a/pkgs/tools/X11/ncview/default.nix +++ b/pkgs/tools/X11/ncview/default.nix @@ -8,18 +8,21 @@ , xorg }: -let +stdenv.mkDerivation (finalAttrs: { pname = "ncview"; version = "2.1.8"; -in stdenv.mkDerivation { - name = "${pname}-${version}"; - src = fetchurl { - url = "ftp://cirrus.ucsd.edu/pub/ncview/ncview-2.1.8.tar.gz"; - sha256 = "1gliziyxil2fcz85hj6z0jq33avrxdcjs74d500lhxwvgd8drfp8"; + url = "ftp://cirrus.ucsd.edu/pub/ncview/ncview-${finalAttrs.version}.tar.gz"; + hash = "sha256-6LrcUHubd0gBKI0cLVnreasxsATfSFjQZ07Q2H38kb4="; }; + strictDeps = true; + + nativeBuildInputs = [ + netcdf + ]; + buildInputs = [ expat libpng @@ -34,8 +37,10 @@ in stdenv.mkDerivation { meta = with lib; { description = "Visual browser for netCDF format files"; - homepage = "http://meteora.ucsd.edu/~pierce/ncview_home_page.html"; - license = licenses.gpl3; + homepage = "http://meteora.ucsd.edu/~pierce/ncview_home_page.html"; + license = licenses.gpl3Plus; + mainProgram = "ncview"; maintainers = with maintainers; [ jmettes ]; + platforms = platforms.all; }; -} +}) |