aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/tools/java/cfr
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2016-01-24 20:31:44 +0100
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2016-01-25 17:35:21 +0100
commit9fb8020e4ec2e74e39a8f28dfb3ef18a70bd1eef (patch)
tree6e5795908883df8f42e0f4491091347ebf8667e4 /pkgs/development/tools/java/cfr
parent7b6454cbb959e001a1e421d6cc00a00994fb7518 (diff)
Add version attribute where maintainers |= nckx
This will probably be mandatory soon, and is a step in the right direction. Removes the deprecated meta.version, and move some meta sections to the end of the file where I should have put them in the first place.
Diffstat (limited to 'pkgs/development/tools/java/cfr')
-rw-r--r--pkgs/development/tools/java/cfr/default.nix29
1 files changed, 14 insertions, 15 deletions
diff --git a/pkgs/development/tools/java/cfr/default.nix b/pkgs/development/tools/java/cfr/default.nix
index 3d42de4640eb..46170341437c 100644
--- a/pkgs/development/tools/java/cfr/default.nix
+++ b/pkgs/development/tools/java/cfr/default.nix
@@ -1,28 +1,14 @@
{ stdenv, fetchurl, jre }:
-let version = "0_101"; in
stdenv.mkDerivation rec {
name = "cfr-${version}";
+ version = "0_101";
src = fetchurl {
sha256 = "0zwl3whypdm2qrw3hwaqjnifkb4wcdn8fx9scrjkli54bhr6dqch";
url = "http://www.benf.org/other/cfr/cfr_${version}.jar";
};
- meta = with stdenv.lib; {
- inherit version;
- 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;
- maintainers = with maintainers; [ nckx ];
- };
-
buildInputs = [ jre ];
phases = [ "installPhase" ];
@@ -38,4 +24,17 @@ stdenv.mkDerivation rec {
EOF
install -Dm755 cfr $out/bin/cfr
'';
+
+ 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;
+ maintainers = with maintainers; [ nckx ];
+ };
}