ncview: refactor

This commit is contained in:
Weijia Wang 2023-10-04 16:54:20 +02:00 committed by Bjørn Forsman
parent 47db6b4417
commit 3e32871bf0

View file

@ -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
@ -35,7 +38,9 @@ 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;
license = licenses.gpl3Plus;
mainProgram = "ncview";
maintainers = with maintainers; [ jmettes ];
platforms = platforms.all;
};
}
})