forked from mirrors/nixpkgs
Add cfr 0_100: another Java decompiler
This commit is contained in:
parent
a360ce48ec
commit
41ad1f947b
41
pkgs/development/tools/java/cfr/default.nix
Normal file
41
pkgs/development/tools/java/cfr/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ stdenv, fetchurl, jre }:
|
||||
|
||||
let version = "0_100"; in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "cfr-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
sha256 = "0q5kh5qdksykz339p55jz0q5cjqvxdzv3a7r4kkijgbfjm1ldr5f";
|
||||
url = "http://www.benf.org/other/cfr/cfr_${version}.jar";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
inherit version;
|
||||
description = "Another java decompiler";
|
||||
longDescription = ''
|
||||
CFR will decompile modern Java features - Java 8 lambdas (pre and post
|
||||
Java beta 103 changes), Java 7 String switches etc, but is written
|
||||
entirely in Java 6.
|
||||
'';
|
||||
homepage = http://www.benf.org/other/cfr/;
|
||||
license = with licenses; mit;
|
||||
platforms = with platforms; linux;
|
||||
maintainers = with maintainers; [ nckx ];
|
||||
};
|
||||
|
||||
buildInputs = [ jre ];
|
||||
|
||||
phases = [ "installPhase" ];
|
||||
|
||||
installPhase = ''
|
||||
jar=$out/share/cfr/cfr_${version}.jar
|
||||
|
||||
install -Dm644 ${src} $jar
|
||||
|
||||
cat << EOF > cfr
|
||||
#!${stdenv.shell}
|
||||
exec ${jre}/bin/java -jar $jar "\''${@}"
|
||||
EOF
|
||||
install -Dm755 cfr $out/bin/cfr
|
||||
'';
|
||||
}
|
|
@ -5043,6 +5043,8 @@ let
|
|||
ruby = ruby_2_0_0;
|
||||
};
|
||||
|
||||
cfr = callPackage ../development/tools/java/cfr { };
|
||||
|
||||
chromedriver = callPackage ../development/tools/selenium/chromedriver { gconf = gnome.GConf; };
|
||||
|
||||
chrpath = callPackage ../development/tools/misc/chrpath { };
|
||||
|
|
Loading…
Reference in a new issue