mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Add clojureUnstable (clojure 1.5.0-RC1).
Patch thanks to Patrick Lee.
This commit is contained in:
parent
6ce14a6729
commit
3b34b3610e
2 changed files with 12 additions and 5 deletions
|
@ -1,17 +1,22 @@
|
||||||
{stdenv, fetchurl, unzip, ant}:
|
{stdenv, fetchurl, unzip, ant, version ? "1.4.0" }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
version = "1.4.0";
|
src_hashes = {
|
||||||
|
"1.4.0" = "27a5a151d5cc1bc3e52dff47c66111e637fefeb42d9bedfa1284a1a31d080171";
|
||||||
|
"1.5.0-RC1" = "111jm0nxkvqr1vrwcpvr70v5paasp8msrj5h8zm1c144c8zc1vln";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation {
|
||||||
name = "clojure-${version}";
|
name = "clojure-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://repo1.maven.org/maven2/org/clojure/clojure/${version}/clojure-${version}.zip";
|
url = "http://repo1.maven.org/maven2/org/clojure/clojure/${version}/clojure-${version}.zip";
|
||||||
sha256 = "27a5a151d5cc1bc3e52dff47c66111e637fefeb42d9bedfa1284a1a31d080171";
|
sha256 = (builtins.getAttr version src_hashes);
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ unzip ant ];
|
buildInputs = [ unzip ant ];
|
||||||
|
|
||||||
buildPhase = "ant";
|
buildPhase = "ant jar";
|
||||||
|
|
||||||
installPhase = "
|
installPhase = "
|
||||||
mkdir -p $out/lib/java
|
mkdir -p $out/lib/java
|
||||||
|
|
|
@ -2762,6 +2762,8 @@ let
|
||||||
|
|
||||||
clojure = callPackage ../development/interpreters/clojure { };
|
clojure = callPackage ../development/interpreters/clojure { };
|
||||||
|
|
||||||
|
clojureUnstable = callPackage ../development/interpreters/clojure { version = "1.5.0-RC1"; };
|
||||||
|
|
||||||
clojure_binary = callPackage ../development/interpreters/clojure/binary.nix { };
|
clojure_binary = callPackage ../development/interpreters/clojure/binary.nix { };
|
||||||
|
|
||||||
clojure_wrapper = callPackage ../development/interpreters/clojure/wrapper.nix {
|
clojure_wrapper = callPackage ../development/interpreters/clojure/wrapper.nix {
|
||||||
|
|
Loading…
Reference in a new issue