diff options
author | Shea Levy <shea@shealevy.com> | 2013-01-27 20:43:38 -0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2013-01-27 20:43:38 -0500 |
commit | 3b34b3610ef3d811cd03f937de366685160f68d5 (patch) | |
tree | 6a5d2caf482d2c4baa3dae577b102f0751305d0d /pkgs/development/interpreters/clojure | |
parent | 6ce14a6729ab8a7191fedb0a184613220b600e54 (diff) |
Add clojureUnstable (clojure 1.5.0-RC1).
Patch thanks to Patrick Lee.
Diffstat (limited to 'pkgs/development/interpreters/clojure')
-rw-r--r-- | pkgs/development/interpreters/clojure/default.nix | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/pkgs/development/interpreters/clojure/default.nix b/pkgs/development/interpreters/clojure/default.nix index 6c20ca7140693..dbbe4a9dcc319 100644 --- a/pkgs/development/interpreters/clojure/default.nix +++ b/pkgs/development/interpreters/clojure/default.nix @@ -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 |