mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
1f7689f189
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/6yymrnh077nbg02mlpyiplqi0g8h3pwx-cfr-0.132/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.132 with grep in /nix/store/6yymrnh077nbg02mlpyiplqi0g8h3pwx-cfr-0.132 - directory tree listing: https://gist.github.com/03397074385526106bce1680bfe6b8c9 - du listing: https://gist.github.com/c5ff1f69de44790159ee04282b1b3102
32 lines
869 B
Nix
32 lines
869 B
Nix
{ stdenv, makeWrapper, fetchurl, jre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "cfr-${version}";
|
|
version = "0.132";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.benf.org/other/cfr/cfr_${version}.jar";
|
|
sha256 = "1fpmd5v3x91lw6jc7x997ic2kklj449fndyg14zvgxawhdkic2z1";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|