summary refs log tree commit diff
path: root/pkgs/development/libraries/martyr/default.nix
diff options
context:
space:
mode:
authorWilli Butz <wbutz@cyberfnord.de>2017-03-20 22:09:59 +0100
committerTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2017-03-21 00:01:13 +0200
commit4bfde8f5b47895af68823fc8600d230813f4473d (patch)
treedaa67e8bf2c3c4a64723b9580cc4c3646333e102 /pkgs/development/libraries/martyr/default.nix
parent8c0074dd9f02daffe7b11b5ce427fd899e189b09 (diff)
downloadnixpkgs-4bfde8f5b47895af68823fc8600d230813f4473d.tar
nixpkgs-4bfde8f5b47895af68823fc8600d230813f4473d.tar.gz
nixpkgs-4bfde8f5b47895af68823fc8600d230813f4473d.tar.bz2
nixpkgs-4bfde8f5b47895af68823fc8600d230813f4473d.tar.lz
nixpkgs-4bfde8f5b47895af68823fc8600d230813f4473d.tar.xz
nixpkgs-4bfde8f5b47895af68823fc8600d230813f4473d.tar.zst
nixpkgs-4bfde8f5b47895af68823fc8600d230813f4473d.zip
martyr: fixed build, removed build.sh, added meta (see #23253)
Diffstat (limited to 'pkgs/development/libraries/martyr/default.nix')
-rw-r--r--pkgs/development/libraries/martyr/default.nix25
1 files changed, 19 insertions, 6 deletions
diff --git a/pkgs/development/libraries/martyr/default.nix b/pkgs/development/libraries/martyr/default.nix
index 7fbd44b3fa4..3b610271539 100644
--- a/pkgs/development/libraries/martyr/default.nix
+++ b/pkgs/development/libraries/martyr/default.nix
@@ -1,11 +1,24 @@
-{stdenv, fetchurl, apacheAnt}:
+{stdenv, fetchurl, ant, jdk}:
 
-stdenv.mkDerivation {
-	name = "martyr-0.3.9";
-	builder = ./builder.sh;
+stdenv.mkDerivation rec {
+	name = "martyr-${version}";
+  version = "0.3.9";
 	src = fetchurl {
-		url = "mirror://sourceforge/martyr/martyr-0.3.9.tar.gz";
+		url = "mirror://sourceforge/martyr/${name}.tar.gz";
 		sha256 = "1ks8j413bcby345kmq1i7av8kwjvz5vxdn1zpv0p7ywxq54i4z59";
 	};
-	inherit stdenv apacheAnt;
+
+  buildInputs = [ ant jdk ];
+
+  buildPhase = "ant";
+
+  installPhase = ''
+    mkdir -p "$out/share/java"
+    cp -v *.jar "$out/share/java"
+  '';
+
+  meta = {
+    description = "Martyr is a Java framework around the IRC protocol to allow application writers easy manipulation of the protocol and client state";
+    homepage = http://martyr.sourceforge.net/;
+  };
 }