From b6405a81a297b0bc6adec44a342fad7d366fc54b Mon Sep 17 00:00:00 2001 From: makefu Date: Sun, 6 Aug 2017 16:09:19 +0200 Subject: ma jd-gui: init --- makefu/5pkgs/jd-gui/default.nix | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 makefu/5pkgs/jd-gui/default.nix (limited to 'makefu/5pkgs') diff --git a/makefu/5pkgs/jd-gui/default.nix b/makefu/5pkgs/jd-gui/default.nix new file mode 100644 index 000000000..adefd80dd --- /dev/null +++ b/makefu/5pkgs/jd-gui/default.nix @@ -0,0 +1,36 @@ +{ stdenv, lib, pkgs, fetchurl, jre, makeWrapper, unzip }: +stdenv.mkDerivation rec { + name = "${packageName}-${version}"; + packageName = "jd-gui"; + version = "1.4.0"; + + src = fetchurl { + url = "https://github.com/java-decompiler/jd-gui/releases/download/v${version}/${name}.jar"; + sha256 = "0rvbplkhafb6s9aiwgcq4ffz4bvzyp7q511pd46hx4ahhzfg7lmx"; + }; + + nativeBuildInputs = [ makeWrapper unzip ]; + + phases = [ "installPhase" ]; + + installPhase = '' + f=$out/lib/jd-gui/ + bin=$out/bin + name=$(basename $src) + mkdir -p $f $bin + + # fixup path to java + cp $src $f + cat > $bin/jd-gui <