3
0
Fork 0
forked from mirrors/nixpkgs
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";
2016-02-09 23:58:53 +00:00
version = "2.6.1";
name = "${pname}-${version}";
src = fetchurl {
url = "https://raw.github.com/technomancy/leiningen/${version}/bin/lein-pkg";
2016-02-09 23:58:53 +00:00
sha256 = "1ndirl36gbba12cs5vw22k2zrbpqdmnpi1gciwqb1zbib2s1akg8";
};
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";
};
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 ];
};
}