2013-01-28 01:38:32 +00:00
|
|
|
{stdenv, fetchurl, makeWrapper, openjdk, rlwrap, clojure }:
|
2012-01-19 20:34:59 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "leiningen";
|
2013-01-28 01:38:32 +00:00
|
|
|
version = "2.0.0";
|
2012-01-19 20:34:59 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2012-05-11 04:36:13 +01:00
|
|
|
url = "https://raw.github.com/technomancy/leiningen/${version}/bin/lein-pkg";
|
2013-01-28 01:38:32 +00:00
|
|
|
sha256 = "0malymlswxwgh8amkw37qjb8n34ylw3chgbdxgxkq34rkvhv60hb";
|
2012-01-19 20:34:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
jarsrc = fetchurl {
|
2013-01-28 01:38:32 +00:00
|
|
|
url = "https://leiningen.s3.amazonaws.com/downloads/leiningen-2.0.0-standalone.jar";
|
|
|
|
sha256 = "10jvk19mr5dcl5a9kzna9zslh77v3ixi8awhrhxi30dn1yj3r7ck";
|
2012-01-19 20:34:59 +00:00
|
|
|
};
|
|
|
|
|
2013-01-28 01:38:32 +00:00
|
|
|
patches = ./lein_2.0.0.patch;
|
2012-05-11 04:36:13 +01:00
|
|
|
|
2013-01-28 01:38:32 +00:00
|
|
|
inherit rlwrap clojure;
|
2012-01-19 20:34:59 +00:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
|
2012-05-11 04:36:13 +01:00
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
2013-01-28 01:38:32 +00:00
|
|
|
propagatedBuildInputs = [ openjdk clojure ];
|
2012-01-19 20:34:59 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/technomancy/leiningen;
|
|
|
|
description = "Project automation for Clojure";
|
|
|
|
license = "EPL";
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
2012-02-29 14:35:34 +00:00
|
|
|
}
|