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

38 lines
1.1 KiB
Nix
Raw Normal View History

2014-02-08 20:48:50 +00:00
{ stdenv, fetchurl, makeWrapper
2015-02-07 17:45:35 +00:00
, coreutils, findutils, jdk, rlwrap, gnupg1compat }:
stdenv.mkDerivation rec {
pname = "leiningen";
version = "2.5.3";
name = "${pname}-${version}";
src = fetchurl {
url = "https://raw.github.com/technomancy/leiningen/${version}/bin/lein-pkg";
sha256 = "0xbfg6v6f3qyi99dbqragh3za2a0agrcq9c0qbkshvp5yd0fx4h1";
};
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";
sha256 = "1p93j03v02mf1cnli6lv9qqnx7gwxr571g8z7y06p0d4nq31c32b";
};
2014-06-10 10:49:47 +01:00
patches = [ ./lein-fix-jar-path.patch ];
2015-02-07 17:45:35 +00:00
inherit rlwrap gnupg1compat findutils coreutils jdk;
builder = ./builder.sh;
buildInputs = [ makeWrapper ];
2014-11-01 23:47:52 +00:00
propagatedBuildInputs = [ jdk ];
meta = {
2013-08-13 22:48:26 +01:00
homepage = http://leiningen.org/;
description = "Project automation for Clojure";
license = stdenv.lib.licenses.epl10;
2014-11-11 14:44:45 +00:00
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
};
}