Add clojureUnstable (clojure 1.5.0-RC1).

Patch thanks to Patrick Lee.
This commit is contained in:
Shea Levy 2013-01-27 20:43:38 -05:00
parent 6ce14a6729
commit 3b34b3610e
2 changed files with 12 additions and 5 deletions

View file

@ -1,17 +1,22 @@
{stdenv, fetchurl, unzip, ant}:
{stdenv, fetchurl, unzip, ant, version ? "1.4.0" }:
stdenv.mkDerivation rec {
version = "1.4.0";
let
src_hashes = {
"1.4.0" = "27a5a151d5cc1bc3e52dff47c66111e637fefeb42d9bedfa1284a1a31d080171";
"1.5.0-RC1" = "111jm0nxkvqr1vrwcpvr70v5paasp8msrj5h8zm1c144c8zc1vln";
};
in
stdenv.mkDerivation {
name = "clojure-${version}";
src = fetchurl {
url = "http://repo1.maven.org/maven2/org/clojure/clojure/${version}/clojure-${version}.zip";
sha256 = "27a5a151d5cc1bc3e52dff47c66111e637fefeb42d9bedfa1284a1a31d080171";
sha256 = (builtins.getAttr version src_hashes);
};
buildInputs = [ unzip ant ];
buildPhase = "ant";
buildPhase = "ant jar";
installPhase = "
mkdir -p $out/lib/java

View file

@ -2762,6 +2762,8 @@ let
clojure = callPackage ../development/interpreters/clojure { };
clojureUnstable = callPackage ../development/interpreters/clojure { version = "1.5.0-RC1"; };
clojure_binary = callPackage ../development/interpreters/clojure/binary.nix { };
clojure_wrapper = callPackage ../development/interpreters/clojure/wrapper.nix {