2024-10-04 16:56:33 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenvNoCC,
|
|
|
|
fetchurl,
|
|
|
|
makeWrapper,
|
|
|
|
jre,
|
|
|
|
}:
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "panoply";
|
2024-10-11 05:15:48 +00:00
|
|
|
version = "5.5.3";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.giss.nasa.gov/tools/panoply/download/PanoplyJ-${version}.tgz";
|
2024-10-11 05:15:48 +00:00
|
|
|
hash = "sha256-TCuCLWMVp7t0JpHA6TbwUdURj/aBggzLa9I7llRY0TU=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
runHook postInstall
|
2022-06-16 17:23:12 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "netCDF, HDF and GRIB Data Viewer";
|
|
|
|
homepage = "https://www.giss.nasa.gov/tools/panoply";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.markuskowa ];
|
2024-10-04 16:56:33 +00:00
|
|
|
license = licenses.unfree; # Package does not state a license
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "panoply";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
}
|