nixpkgs/pkgs/development/tools/build-managers/apache-maven/default.nix
2015-11-10 08:46:14 +01:00

25 lines
588 B
Nix

{ stdenv, fetchurl, jdk, makeWrapper }:
assert jdk != null;
let version = "3.3.3"; in
stdenv.mkDerivation rec {
name = "apache-maven-${version}";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://apache/maven/maven-3/${version}/binaries/${name}-bin.tar.gz";
sha256 = "0ya71kxx0isvdnxz3n0rcynlgjah06mvp5r039x61wxr5ahw939s";
};
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;
};
}