diff --git a/pkgs/development/libraries/java/junit/default.nix b/pkgs/development/libraries/java/junit/default.nix index ea9b1029efc9..c1d713950b40 100644 --- a/pkgs/development/libraries/java/junit/default.nix +++ b/pkgs/development/libraries/java/junit/default.nix @@ -1,12 +1,13 @@ -{stdenv, fetchurl, unzip} : +{stdenv, fetchgit, unzip} : stdenv.mkDerivation { name = "junit-4.8.2"; builder = ./builder.sh; - src = fetchurl { - url = http://github.com/downloads/KentBeck/junit/junit4.8.2.zip; - sha256 = "01simvc3pmgp27p7vzavmsx5rphm6hqzwrqfkwllhf3812dcqxy6"; + src = fetchgit { + url = https://github.com/junit-team/junit.git; + rev = "refs/tags/r4.8.2"; + sha256 = "1w73l3x97kg8zmrp44xgvp3gr6sih0crm0dhhky6jiq915ba1dlh"; }; inherit unzip;