uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
37
pkgs/tools/misc/panoply/default.nix
Normal file
37
pkgs/tools/misc/panoply/default.nix
Normal 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
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue