forked from mirrors/nixpkgs
9fde82e3ff
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 - ran ‘/nix/store/8hlizlz9d6cp6n3w3qx7s0wm2z3d3g8f-cfr-0.128/bin/cfr -h’ got 0 exit code - ran ‘/nix/store/8hlizlz9d6cp6n3w3qx7s0wm2z3d3g8f-cfr-0.128/bin/cfr --help’ got 0 exit code - ran ‘/nix/store/8hlizlz9d6cp6n3w3qx7s0wm2z3d3g8f-cfr-0.128/bin/cfr help’ got 0 exit code - found 0.128 with grep in /nix/store/8hlizlz9d6cp6n3w3qx7s0wm2z3d3g8f-cfr-0.128 - directory tree listing: https://gist.github.com/3d40ccd7bfb3d81eb71e8a9033d1a127
32 lines
869 B
Nix
32 lines
869 B
Nix
{ stdenv, makeWrapper, fetchurl, jre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "cfr-${version}";
|
|
version = "0.128";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.benf.org/other/cfr/cfr_${version}.jar";
|
|
sha256 = "09mx1f6d1p57q5r05nvgm1xrhqv34n7v7rwq875whb441h1dnsix";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|