nixpkgs/pkgs/development/tools/java/cfr/default.nix
R. RyanTM f02ff111a1 cfr: 0.128 -> 0.130 (#42528)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/cfr/versions.

These checks were done:

- built on NixOS
- /nix/store/qfb3yaadxcg1jgkb1fqacki5sfkpkgil-cfr-0.130/bin/cfr passed the binary check.
- 1 of 1 passed binary check by having a zero exit code.
- 0 of 1 passed binary check by having the new version present in output.
- found 0.130 with grep in /nix/store/qfb3yaadxcg1jgkb1fqacki5sfkpkgil-cfr-0.130
- directory tree listing: https://gist.github.com/99807c8d52305df534377a48b6961987
- du listing: https://gist.github.com/b8349cb82a3ec2d338d78686d712e87f
2018-06-24 20:11:35 +02:00

31 lines
869 B
Nix

{ stdenv, makeWrapper, fetchurl, jre }:
stdenv.mkDerivation rec {
name = "cfr-${version}";
version = "0.130";
src = fetchurl {
url = "http://www.benf.org/other/cfr/cfr_${version}.jar";
sha256 = "0zy63jxl05f0wm9s344y846hzqn0zk34w6qpbf48a98si5ciwsmn";
};
buildInputs = [ makeWrapper ];
buildCommand = ''
jar=$out/share/java/cfr_${version}.jar
install -Dm444 $src $jar
makeWrapper ${jre}/bin/java $out/bin/cfr --add-flags "-jar $jar"
'';
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;
};
}