nixpkgs/pkgs/development/tools/build-managers/apache-maven/default.nix

29 lines
686 B
Nix
Raw Normal View History

{ stdenv, fetchurl, jdk, makeWrapper }:
assert jdk != null;
2019-09-25 08:26:53 +01:00
let version = "3.6.2"; in
2015-01-21 19:20:05 +00:00
stdenv.mkDerivation rec {
2019-08-13 22:52:01 +01:00
pname = "apache-maven";
inherit version;
builder = ./builder.sh;
src = fetchurl {
2019-08-13 22:52:01 +01:00
url = "mirror://apache/maven/maven-3/${version}/binaries/${pname}-${version}-bin.tar.gz";
2019-09-25 08:26:53 +01:00
sha256 = "1p6z6bmjfzda8kxy73jjg03yfkbssbb3vgvzspxxd0hljv8r5g1z";
};
buildInputs = [ makeWrapper ];
inherit jdk;
meta = with stdenv.lib; {
description = "Build automation tool (used primarily for Java projects)";
homepage = http://maven.apache.org/;
license = licenses.asl20;
platforms = platforms.unix;
2017-10-31 11:43:34 +00:00
maintainers = with maintainers; [ cko ];
};
}