2014-01-24 16:07:20 +01:00
|
|
|
{ stdenv, fetchurl }:
|
2005-09-11 17:38:59 +02:00
|
|
|
|
2014-01-24 16:07:20 +01:00
|
|
|
let
|
|
|
|
|
|
|
|
junit = fetchurl {
|
|
|
|
url = http://search.maven.org/remotecontent?filepath=junit/junit/4.11/junit-4.11.jar;
|
|
|
|
sha256 = "1zh6klzv8w30dx7jg6pkhllk4587av4znflzhxz8x97c7rhf3a4h";
|
|
|
|
};
|
2005-09-11 17:38:59 +02:00
|
|
|
|
2014-01-24 16:07:20 +01:00
|
|
|
hamcrest = fetchurl {
|
|
|
|
url = http://search.maven.org/remotecontent?filepath=org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar;
|
|
|
|
sha256 = "1sfqqi8p5957hs9yik44an3lwpv8ln2a6sh9gbgli4vkx68yzzb6";
|
2005-09-11 17:38:59 +02:00
|
|
|
};
|
|
|
|
|
2014-01-24 16:07:20 +01:00
|
|
|
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
|
|
|
|
'';
|
2010-06-01 12:13:21 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.junit.org/;
|
2014-01-24 16:07:20 +01:00
|
|
|
description = "A framework for repeatable tests in Java";
|
|
|
|
license = stdenv.lib.licenses.epl10;
|
2010-06-01 12:13:21 +02:00
|
|
|
};
|
2005-09-11 17:38:59 +02:00
|
|
|
}
|