3
0
Fork 0
forked from mirrors/nixpkgs

panoply: init at 5.0.6

This commit is contained in:
Markus Kowalewski 2022-05-26 18:08:00 +02:00 committed by Markus Kowalewski
parent a701e4adbc
commit 0c7387d817
No known key found for this signature in database
GPG key ID: 502A248E3FB4FF48
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{ lib, stdenvNoCC, fetchurl, makeWrapper, jre } :
stdenvNoCC.mkDerivation rec {
pname = "panoply";
version = "5.0.6";
src = fetchurl {
url = "https://www.giss.nasa.gov/tools/panoply/download/PanoplyJ-${version}.tgz";
sha256 = "0nbr22sxfmk48ngk9gb1vcwv3fkd5m0v208xx6vl00nlnbh4kms4";
};
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
};
}

View file

@ -8717,6 +8717,8 @@ with pkgs;
pandoc-secnos = python3Packages.callPackage ../tools/misc/pandoc-secnos { };
pandoc-tablenos = python3Packages.callPackage ../tools/misc/pandoc-tablenos { };
panoply = callPackage ../tools/misc/panoply { };
patray = callPackage ../tools/audio/patray { };
pathvector = callPackage ../tools/networking/pathvector { };