procyon: init at 0.6-prerelease

This commit is contained in:
Sandro Jäckel 2021-10-23 00:18:50 +02:00
parent bc4417cdca
commit c6172d382c
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ lib, stdenv, fetchurl, runtimeShell, jre_headless }:
stdenv.mkDerivation rec {
pname = "procyon";
version = "0.6-prerelease";
src = fetchurl {
url = "https://github.com/mstrobel/procyon/releases/download/${version}/procyon-decompiler-${version}.jar";
sha256 = "sha256-eBVWKCo8ccAT/T9HgjxUCNFzGyzofc9Mbyp0ldUmrdk=";
};
dontUnpack = true;
installPhase = ''
mkdir -p $out/bin $out/share/procyon
cp $src $out/share/procyon/procyon-decompiler.jar
cat << EOF > $out/bin/procyon
#!${runtimeShell}
exec ${jre_headless}/bin/java -jar $out/share/procyon/procyon-decompiler.jar "\$@"
EOF
chmod +x $out/bin/procyon
'';
meta = with lib; {
description = "Procyon is a suite of Java metaprogramming tools including a Java decompiler";
homepage = "https://github.com/mstrobel/procyon/";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View File

@ -3420,6 +3420,8 @@ with pkgs;
inherit (darwin) libiconv;
};
procyon = callPackage ../tools/misc/procyon { };
profetch = callPackage ../tools/misc/profetch { };
psrecord = python3Packages.callPackage ../tools/misc/psrecord {};