Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 47 lines 850 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 expat, 6 libpng, 7 udunits, 8 netcdf, 9 xorg, 10}: 11 12stdenv.mkDerivation (finalAttrs: { 13 pname = "ncview"; 14 version = "2.1.9"; 15 16 src = fetchurl { 17 url = "https://cirrus.ucsd.edu/~pierce/ncview/ncview-${finalAttrs.version}.tar.gz"; 18 hash = "sha256-4jF6wJSvYvCtz2hCHXBlgglDaq40RkCVnsiXWmRYka8="; 19 }; 20 21 strictDeps = true; 22 23 nativeBuildInputs = [ 24 netcdf 25 ]; 26 27 buildInputs = [ 28 expat 29 libpng 30 netcdf 31 udunits 32 xorg.libICE 33 xorg.libSM 34 xorg.libX11 35 xorg.libXaw 36 xorg.libXt 37 ]; 38 39 meta = with lib; { 40 description = "Visual browser for netCDF format files"; 41 homepage = "http://meteora.ucsd.edu/~pierce/ncview_home_page.html"; 42 license = licenses.gpl3Plus; 43 mainProgram = "ncview"; 44 maintainers = with maintainers; [ jmettes ]; 45 platforms = platforms.all; 46 }; 47})