2018-02-25 13:40:00 +00:00
|
|
|
{ stdenv, makeWrapper, fetchurl, jre }:
|
2015-05-09 02:43:40 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cfr-${version}";
|
2018-12-16 19:20:14 +00:00
|
|
|
version = "0.137";
|
2015-05-09 02:43:40 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.benf.org/other/cfr/cfr_${version}.jar";
|
2018-12-16 19:20:14 +00:00
|
|
|
sha256 = "1z704b31riyr3kv9cb2vqhd5gcha849g5k4zbvsh4yr9cdx226rz";
|
2015-05-09 02:43:40 +01:00
|
|
|
};
|
|
|
|
|
2018-02-25 13:40:00 +00:00
|
|
|
buildInputs = [ makeWrapper ];
|
2015-05-09 02:43:40 +01:00
|
|
|
|
2018-02-25 13:40:00 +00:00
|
|
|
buildCommand = ''
|
|
|
|
jar=$out/share/java/cfr_${version}.jar
|
|
|
|
install -Dm444 $src $jar
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/cfr --add-flags "-jar $jar"
|
2015-05-09 02:43:40 +01:00
|
|
|
'';
|
2016-01-24 19:31:44 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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 = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2015-05-09 02:43:40 +01:00
|
|
|
}
|