2014-02-08 12:48:50 -08:00
|
|
|
{ stdenv, fetchurl, makeWrapper
|
2015-02-07 09:45:35 -08:00
|
|
|
, coreutils, findutils, jdk, rlwrap, gnupg1compat }:
|
2012-01-19 12:34:59 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "leiningen";
|
2015-01-10 05:38:45 -08:00
|
|
|
version = "2.5.1";
|
2012-01-19 12:34:59 -08:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2012-05-10 20:36:13 -07:00
|
|
|
url = "https://raw.github.com/technomancy/leiningen/${version}/bin/lein-pkg";
|
2015-01-10 05:38:45 -08:00
|
|
|
sha256 = "0pqqb2bh0a17426diwyhk5vbxcfz45rppbxmjydsmai94jm3cgix";
|
2012-01-19 12:34:59 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
jarsrc = fetchurl {
|
2015-01-10 05:38:45 -08:00
|
|
|
# NOTE: This is actually a .jar, Github has issues
|
|
|
|
url = "https://github.com/technomancy/leiningen/releases/download/${version}/${name}-standalone.zip";
|
|
|
|
sha256 = "1irl3w66xq1xbbs4g10dnw1vknfw8al70nhr744gfn2za27w0xdl";
|
2012-01-19 12:34:59 -08:00
|
|
|
};
|
|
|
|
|
2014-06-10 02:49:47 -07:00
|
|
|
patches = [ ./lein-fix-jar-path.patch ];
|
2012-05-10 20:36:13 -07:00
|
|
|
|
2015-02-07 09:45:35 -08:00
|
|
|
inherit rlwrap gnupg1compat findutils coreutils jdk;
|
2012-01-19 12:34:59 -08:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
|
2012-05-10 20:36:13 -07:00
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
2014-11-01 16:47:52 -07:00
|
|
|
propagatedBuildInputs = [ jdk ];
|
2012-01-19 12:34:59 -08:00
|
|
|
|
|
|
|
meta = {
|
2013-08-13 14:48:26 -07:00
|
|
|
homepage = http://leiningen.org/;
|
2012-01-19 12:34:59 -08:00
|
|
|
description = "Project automation for Clojure";
|
2014-11-05 16:44:33 -08:00
|
|
|
license = stdenv.lib.licenses.epl10;
|
2014-11-11 06:44:45 -08:00
|
|
|
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
|
2014-04-23 05:26:16 -07:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
|
2012-01-19 12:34:59 -08:00
|
|
|
};
|
2012-02-29 06:35:34 -08:00
|
|
|
}
|