nixpkgs/pkgs/development/tools/build-managers/leiningen/default.nix

37 lines
1,011 B
Nix
Raw Normal View History

2014-02-08 21:48:50 +01:00
{ stdenv, fetchurl, makeWrapper
, coreutils, findutils, jdk, rlwrap, clojure, gnupg }:
stdenv.mkDerivation rec {
pname = "leiningen";
2014-06-19 12:04:33 +02:00
version = "2.4.2";
name = "${pname}-${version}";
src = fetchurl {
url = "https://raw.github.com/technomancy/leiningen/${version}/bin/lein-pkg";
2014-06-19 12:04:33 +02:00
sha256 = "1qdq3v7wv9jacw4bipgx24knlipw6zdcx43yd1qyw6zwaad51ckw";
};
jarsrc = fetchurl {
2014-06-10 11:49:47 +02:00
url = "https://github.com/technomancy/leiningen/releases/download/${version}/${name}-standalone.jar";
2014-06-19 12:04:33 +02:00
sha256 = "0n4kpmzw9nvppq758lhnrr7xps5j6gwmdm98m772cj7j4vixsrzb";
};
2014-06-10 11:49:47 +02:00
patches = [ ./lein-fix-jar-path.patch ];
inherit rlwrap clojure gnupg findutils coreutils jdk;
builder = ./builder.sh;
buildInputs = [ makeWrapper ];
propagatedBuildInputs = [ jdk clojure ];
meta = {
2013-08-13 23:48:26 +02:00
homepage = http://leiningen.org/;
description = "Project automation for Clojure";
license = "EPL";
2013-10-08 11:05:19 +02:00
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
};
}