grib2json: init
This commit is contained in:
parent
29263a2941
commit
ee59d7d72a
19
krebs/5pkgs/simple/grib2json/default.nix
Normal file
19
krebs/5pkgs/simple/grib2json/default.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{ stdenv, fetchzip, makeWrapper, jre }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "grib2json";
|
||||||
|
src = fetchzip {
|
||||||
|
url = "https://github.com/krebs/grib2json-bin/archive/31efe677b40fe491c988d50f96b59b1b7e2d46f7.zip";
|
||||||
|
sha256 = "1h3yxg270bvac7kaqsbsv4f8nln1i03rfz4cm8cp7llhjj3s6a6b";
|
||||||
|
};
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp -r lib $out/
|
||||||
|
cat > $out/bin/grib2json << EOF
|
||||||
|
#!/bin/sh
|
||||||
|
set -x
|
||||||
|
${jre}/bin/java -jar $out/lib/grib2json-0.8.0-SNAPSHOT.jar "\$@"
|
||||||
|
EOF
|
||||||
|
chmod +x $out/bin/grib2json
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user