junit: Update to 4.11

This commit is contained in:
Eelco Dolstra 2014-01-24 16:07:20 +01:00
parent 29a29c6438
commit a17b090f99
2 changed files with 25 additions and 14 deletions

View File

@ -1,6 +0,0 @@
set -e
source $stdenv/setup
$unzip/bin/unzip $src
mkdir -p $out
mv junit*/* $out

View File

@ -1,17 +1,34 @@
{stdenv, fetchurl, unzip} :
{ stdenv, fetchurl }:
stdenv.mkDerivation {
name = "junit-4.8.2";
builder = ./builder.sh;
let
src = fetchurl {
url = https://github.com/downloads/junit-team/junit/junit4.8.2.zip;
sha256 = "01simvc3pmgp27p7vzavmsx5rphm6hqzwrqfkwllhf3812dcqxy6";
junit = fetchurl {
url = http://search.maven.org/remotecontent?filepath=junit/junit/4.11/junit-4.11.jar;
sha256 = "1zh6klzv8w30dx7jg6pkhllk4587av4znflzhxz8x97c7rhf3a4h";
};
inherit unzip;
hamcrest = fetchurl {
url = http://search.maven.org/remotecontent?filepath=org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar;
sha256 = "1sfqqi8p5957hs9yik44an3lwpv8ln2a6sh9gbgli4vkx68yzzb6";
};
in
stdenv.mkDerivation {
name = "junit-4.11";
unpackPhase = "true";
installPhase =
''
mkdir -p $out/share/java
ln -s ${junit} $out/share/java/junit.jar
ln -s ${hamcrest} $out/share/java/hamcrest-core.jar
'';
meta = {
homepage = http://www.junit.org/;
description = "A framework for repeatable tests in Java";
license = stdenv.lib.licenses.epl10;
};
}