2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, jdk, makeWrapper }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
assert jdk != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "apache-maven";
|
2021-05-03 20:48:10 +00:00
|
|
|
version = "3.8.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://apache/maven/maven-3/${version}/binaries/${pname}-${version}-bin.tar.gz";
|
2021-05-03 20:48:10 +00:00
|
|
|
sha256 = "00pgmc9v2s2970wgl2ksvpqy4lxx17zhjm9fgd10fkamxc2ik2mr";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
inherit jdk;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Build automation tool (used primarily for Java projects)";
|
|
|
|
homepage = "http://maven.apache.org/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ cko ];
|
|
|
|
};
|
|
|
|
}
|