2014-02-08 20:48:50 +00:00
|
|
|
{ stdenv, fetchurl, makeWrapper
|
2015-02-07 17:45:35 +00:00
|
|
|
, coreutils, findutils, jdk, rlwrap, gnupg1compat }:
|
2012-01-19 20:34:59 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "leiningen";
|
2016-02-09 23:58:53 +00:00
|
|
|
version = "2.6.1";
|
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";
|
2016-02-09 23:58:53 +00:00
|
|
|
sha256 = "1ndirl36gbba12cs5vw22k2zrbpqdmnpi1gciwqb1zbib2s1akg8";
|
2012-01-19 20:34:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
jarsrc = fetchurl {
|
2015-01-10 13:38:45 +00:00
|
|
|
# NOTE: This is actually a .jar, Github has issues
|
|
|
|
url = "https://github.com/technomancy/leiningen/releases/download/${version}/${name}-standalone.zip";
|
2016-02-09 23:58:53 +00:00
|
|
|
sha256 = "1533msarx6gb3xc2sp2nmspllnqy7anpnv9a0ifl0psxm3xph06p";
|
2012-01-19 20:34:59 +00:00
|
|
|
};
|
|
|
|
|
2014-06-10 10:49:47 +01:00
|
|
|
patches = [ ./lein-fix-jar-path.patch ];
|
2012-05-11 04:36:13 +01:00
|
|
|
|
2015-02-07 17:45:35 +00:00
|
|
|
inherit rlwrap gnupg1compat findutils coreutils jdk;
|
2012-01-19 20:34:59 +00:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
|
2012-05-11 04:36:13 +01: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 22:48:26 +01: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;
|
2014-11-11 14:44:45 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
|
2014-04-23 13:26:16 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
|
2012-01-19 20:34:59 +00:00
|
|
|
};
|
2012-02-29 14:35:34 +00:00
|
|
|
}
|