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-03-30 19:09:39 +00:00
|
|
|
version = "2.1.2";
|
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-03-30 19:09:39 +00:00
|
|
|
sha256 = "10s4xpwrhd8wz3h2vj8ay4rf2hw8vzswfkr8ckckk3fhjcn130dy";
|
2012-01-19 20:34:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
jarsrc = fetchurl {
|
2013-03-30 19:09:39 +00:00
|
|
|
url = "https://leiningen.s3.amazonaws.com/downloads/${pname}-${version}-standalone.jar";
|
|
|
|
sha256 = "08jq21zpsgwsmsz7lpfxidj2s3mv8i23fjwyl9qc6dngskkx45sa";
|
2012-01-19 20:34:59 +00:00
|
|
|
};
|
|
|
|
|
2013-03-30 19:09:39 +00:00
|
|
|
patches = ./lein_2.1.2.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
|
|
|
}
|