ncview: refactor
This commit is contained in:
parent
47db6b4417
commit
3e32871bf0
1 changed files with 14 additions and 9 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue