2021-10-22 23:18:50 +01:00
|
|
|
{ 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";
|
2022-06-02 14:38:41 +01:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2021-10-22 23:18:50 +01:00
|
|
|
homepage = "https://github.com/mstrobel/procyon/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|