2022-06-16 17:23:12 +00:00
|
|
|
{ lib, stdenvNoCC, fetchurl, makeWrapper, jre } :
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "panoply";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "5.2.5";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.giss.nasa.gov/tools/panoply/download/PanoplyJ-${version}.tgz";
|
2023-04-29 16:46:19 +00:00
|
|
|
sha256 = "sha256-FzLL4FCAT9iZ6YFlzc+D5LPg89L/s9dIum/DoFe61Es=";
|
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"
|
|
|
|
|
|
|
|
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
|
|
|
|
};
|
|
|
|
}
|