2014-02-08 21:48:50 +01:00
|
|
|
{ stdenv, fetchurl, makeWrapper
|
2015-02-07 18:45:35 +01:00
|
|
|
, coreutils, findutils, jdk, rlwrap, gnupg1compat }:
|
2012-01-19 21:34:59 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "leiningen";
|
2015-12-04 16:35:06 +01:00
|
|
|
version = "2.5.3";
|
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";
|
2015-12-04 16:35:06 +01:00
|
|
|
sha256 = "0xbfg6v6f3qyi99dbqragh3za2a0agrcq9c0qbkshvp5yd0fx4h1";
|
2012-01-19 21:34:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
jarsrc = fetchurl {
|
2015-01-10 14:38:45 +01:00
|
|
|
# NOTE: This is actually a .jar, Github has issues
|
|
|
|
url = "https://github.com/technomancy/leiningen/releases/download/${version}/${name}-standalone.zip";
|
2015-12-04 16:35:06 +01:00
|
|
|
sha256 = "1p93j03v02mf1cnli6lv9qqnx7gwxr571g8z7y06p0d4nq31c32b";
|
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
|
|
|
|
2015-02-07 18:45:35 +01:00
|
|
|
inherit rlwrap gnupg1compat findutils coreutils jdk;
|
2012-01-19 21:34:59 +01:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
|
2012-05-11 05:36:13 +02:00
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
2014-11-02 00:47:52 +01:00
|
|
|
propagatedBuildInputs = [ jdk ];
|
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";
|
2014-11-06 01:44:33 +01:00
|
|
|
license = stdenv.lib.licenses.epl10;
|
2014-11-11 15:44:45 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
|
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
|
|
|
}
|