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