diff options
author | Jeschli <jeschli@gmail.com> | 2020-04-14 20:36:21 +0200 |
---|---|---|
committer | Jeschli <jeschli@gmail.com> | 2020-04-14 20:36:21 +0200 |
commit | e5342b25c149f05db86983f3785ee395c156b435 (patch) | |
tree | e45270c08010c48c27a22643bd9a3a343b880eae /krebs/5pkgs/simple/grib2json | |
parent | 290b6a542527a0a48c11fc2b00aee2b4d7f7df06 (diff) | |
parent | 843a537bd7fbedd8eb5fd61a1172dd8229440606 (diff) |
Merge branch 'master' of https://cgit.lassul.us/stockholm
Diffstat (limited to 'krebs/5pkgs/simple/grib2json')
-rw-r--r-- | krebs/5pkgs/simple/grib2json/default.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/krebs/5pkgs/simple/grib2json/default.nix b/krebs/5pkgs/simple/grib2json/default.nix new file mode 100644 index 000000000..2a7959a75 --- /dev/null +++ b/krebs/5pkgs/simple/grib2json/default.nix @@ -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 + ''; +} |