28 lines
686 B
Nix
28 lines
686 B
Nix
{ stdenv, fetchurl, jdk, makeWrapper }:
|
|
|
|
assert jdk != null;
|
|
|
|
let version = "3.6.2"; in
|
|
stdenv.mkDerivation rec {
|
|
pname = "apache-maven";
|
|
inherit version;
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
|
url = "mirror://apache/maven/maven-3/${version}/binaries/${pname}-${version}-bin.tar.gz";
|
|
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;
|
|
maintainers = with maintainers; [ cko ];
|
|
};
|
|
}
|