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

28 lines
665 B
Nix
Raw Normal View History

{ stdenv, fetchurl, jdk, makeWrapper }:
assert jdk != null;
2017-10-31 12:43:34 +01:00
let version = "3.5.2"; in
2015-01-21 20:20:05 +01:00
stdenv.mkDerivation rec {
name = "apache-maven-${version}";
builder = ./builder.sh;
src = fetchurl {
2015-01-21 20:20:05 +01:00
url = "mirror://apache/maven/maven-3/${version}/binaries/${name}-bin.tar.gz";
2017-10-31 12:43:34 +01:00
sha256 = "1zza5kjf69hnx41gy3yhvsk1kz259nig5njcmzjbsr8a75p1yyvh";
};
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 12:43:34 +01:00
maintainers = with maintainers; [ cko ];
};
}