ae2dc6aea6
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
44 lines
993 B
Nix
44 lines
993 B
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchurl,
|
|
makeWrapper,
|
|
jre,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "panoply";
|
|
version = "5.5.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.giss.nasa.gov/tools/panoply/download/PanoplyJ-${version}.tgz";
|
|
hash = "sha256-TCuCLWMVp7t0JpHA6TbwUdURj/aBggzLa9I7llRY0TU=";
|
|
};
|
|
|
|
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 postInstall
|
|
'';
|
|
|
|
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
|
|
mainProgram = "panoply";
|
|
};
|
|
}
|