2018-02-25 14:40:00 +01:00
|
|
|
{ stdenv, makeWrapper, fetchurl, jre }:
|
2015-05-09 03:43:40 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "cfr";
|
2019-11-01 21:45:55 +01:00
|
|
|
version = "0.148";
|
2015-05-09 03:43:40 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.benf.org/other/cfr/cfr_${version}.jar";
|
2019-11-01 21:45:55 +01:00
|
|
|
sha256 = "04nhbzcb0n5xckkbl1rz4xa2bz53hrlm938wrh0gfkzrwwgzj1ql";
|
2015-05-09 03:43:40 +02:00
|
|
|
};
|
|
|
|
|
2019-04-24 21:34:23 +02:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2015-05-09 03:43:40 +02:00
|
|
|
|
2018-02-25 14:40:00 +01: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 03:43:40 +02:00
|
|
|
'';
|
2016-01-24 20:31:44 +01: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 03:43:40 +02:00
|
|
|
}
|