2021-10-28 06:52:43 +00:00
|
|
|
{ lib, stdenv, fetchurl, runtimeShell, jre_headless }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "procyon";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "0.6.0";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-12-17 10:02:37 +00:00
|
|
|
url = "https://github.com/mstrobel/procyon/releases/download/v${version}/procyon-decompiler-${version}.jar";
|
|
|
|
sha256 = "sha256-gh2pYBL8aSRPoeopjJBFXuTgIUNLx5bTuVRqskYBt3k=";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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-16 17:23:12 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2021-10-28 06:52:43 +00:00
|
|
|
homepage = "https://github.com/mstrobel/procyon/";
|
|
|
|
license = licenses.asl20;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "procyon";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
}
|