mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
38 lines
954 B
Nix
38 lines
954 B
Nix
{ lib, stdenvNoCC, fetchurl, makeWrapper, jre } :
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "panoply";
|
|
version = "5.2.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.giss.nasa.gov/tools/panoply/download/PanoplyJ-${version}.tgz";
|
|
sha256 = "sha256-bbePMbI1YF0YvakO5vlURdE7UG3pLiuByImYvDq9cRY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
jarbase=$out/share/panoply
|
|
mkdir -p $out/bin $jarbase/jars
|
|
|
|
sed -i "s:^SCRIPTDIR.*:SCRIPTDIR=$jarbase:" panoply.sh
|
|
|
|
cp panoply.sh $out/bin/panoply
|
|
cp -r jars $jarbase
|
|
|
|
wrapProgram "$out/bin/panoply" --prefix PATH : "${jre}/bin"
|
|
|
|
runHook postHook
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "netCDF, HDF and GRIB Data Viewer";
|
|
homepage = "https://www.giss.nasa.gov/tools/panoply";
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.markuskowa ];
|
|
license = licenses.unfree; # Package does not state a license
|
|
};
|
|
}
|