2014-02-08 21:48:50 +01:00
|
|
|
{ stdenv, fetchurl, makeWrapper
|
|
|
|
, coreutils, findutils, jdk, rlwrap, clojure, gnupg }:
|
2012-01-19 21:34:59 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "leiningen";
|
2014-06-19 12:04:33 +02:00
|
|
|
version = "2.4.2";
|
2012-01-19 21:34:59 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2012-05-11 05:36:13 +02:00
|
|
|
url = "https://raw.github.com/technomancy/leiningen/${version}/bin/lein-pkg";
|
2014-06-19 12:04:33 +02:00
|
|
|
sha256 = "1qdq3v7wv9jacw4bipgx24knlipw6zdcx43yd1qyw6zwaad51ckw";
|
2012-01-19 21:34:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
jarsrc = fetchurl {
|
2014-06-10 11:49:47 +02:00
|
|
|
url = "https://github.com/technomancy/leiningen/releases/download/${version}/${name}-standalone.jar";
|
2014-06-19 12:04:33 +02:00
|
|
|
sha256 = "0n4kpmzw9nvppq758lhnrr7xps5j6gwmdm98m772cj7j4vixsrzb";
|
2012-01-19 21:34:59 +01:00
|
|
|
};
|
|
|
|
|
2014-06-10 11:49:47 +02:00
|
|
|
patches = [ ./lein-fix-jar-path.patch ];
|
2012-05-11 05:36:13 +02:00
|
|
|
|
2014-03-07 13:32:10 +01:00
|
|
|
inherit rlwrap clojure gnupg findutils coreutils jdk;
|
2012-01-19 21:34:59 +01:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
|
2012-05-11 05:36:13 +02:00
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
2013-08-09 17:30:10 +02:00
|
|
|
propagatedBuildInputs = [ jdk clojure ];
|
2012-01-19 21:34:59 +01:00
|
|
|
|
|
|
|
meta = {
|
2013-08-13 23:48:26 +02:00
|
|
|
homepage = http://leiningen.org/;
|
2012-01-19 21:34:59 +01:00
|
|
|
description = "Project automation for Clojure";
|
|
|
|
license = "EPL";
|
2013-10-08 11:05:19 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-04-23 14:26:16 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
|
2012-01-19 21:34:59 +01:00
|
|
|
};
|
2012-02-29 15:35:34 +01:00
|
|
|
}
|