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

26 lines
600 B
Nix
Raw Normal View History

{ stdenv, fetchurl, jdk, makeWrapper }:
assert jdk != null;
2015-12-21 16:41:34 +01:00
let version = "3.3.9"; 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";
2015-12-21 16:41:34 +01:00
sha256 = "6e3e9c949ab4695a204f74038717aa7b2689b1be94875899ac1b3fe42800ff82";
};
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;
};
}