2014-02-08 20:48:50 +00:00
|
|
|
{ stdenv, fetchurl, makeWrapper
|
|
|
|
, coreutils, findutils, jdk, rlwrap, clojure, gnupg }:
|
2012-01-19 20:34:59 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "leiningen";
|
2014-02-08 20:48:50 +00:00
|
|
|
version = "2.3.4";
|
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";
|
2014-02-08 20:48:50 +00:00
|
|
|
sha256 = "1v83hpvp349pgqqiy4babc5m5b9lcwk0fif80fpv4jqvp0a8v6r7";
|
2012-01-19 20:34:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
jarsrc = fetchurl {
|
2013-03-30 19:09:39 +00:00
|
|
|
url = "https://leiningen.s3.amazonaws.com/downloads/${pname}-${version}-standalone.jar";
|
2014-02-08 20:48:50 +00:00
|
|
|
sha256 = "1pqc99p4vz4q3qcs90cqql6m7kc27ihx4hbqs5alxkzk7jv8s2bk";
|
2012-01-19 20:34:59 +00:00
|
|
|
};
|
|
|
|
|
2013-08-09 16:30:10 +01:00
|
|
|
patches = ./lein_2.3.0.patch;
|
2012-05-11 04:36:13 +01:00
|
|
|
|
2014-03-07 12:32:10 +00:00
|
|
|
inherit rlwrap clojure gnupg findutils coreutils jdk;
|
2012-01-19 20:34:59 +00:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
|
2012-05-11 04:36:13 +01:00
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
2013-08-09 16:30:10 +01:00
|
|
|
propagatedBuildInputs = [ jdk clojure ];
|
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";
|
|
|
|
license = "EPL";
|
2013-10-08 10:05:19 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
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
|
|
|
}
|