diff options
author | Rob Vermaas <rob.vermaas@gmail.com> | 2010-10-20 08:23:52 +0000 |
---|---|---|
committer | Rob Vermaas <rob.vermaas@gmail.com> | 2010-10-20 08:23:52 +0000 |
commit | 5a7fa1d061fc6bf4abbb89a15a70a7c819167526 (patch) | |
tree | ef9862ff7edfbc18c2cefdcd5627be7cfd6bf324 /pkgs/build-support/release/ant-build.nix | |
parent | 40dd3ccf7b891460dd12e9bc31407351b1f7be87 (diff) | |
download | nixlib-5a7fa1d061fc6bf4abbb89a15a70a7c819167526.tar nixlib-5a7fa1d061fc6bf4abbb89a15a70a7c819167526.tar.gz nixlib-5a7fa1d061fc6bf4abbb89a15a70a7c819167526.tar.bz2 nixlib-5a7fa1d061fc6bf4abbb89a15a70a7c819167526.tar.lz nixlib-5a7fa1d061fc6bf4abbb89a15a70a7c819167526.tar.xz nixlib-5a7fa1d061fc6bf4abbb89a15a70a7c819167526.tar.zst nixlib-5a7fa1d061fc6bf4abbb89a15a70a7c819167526.zip |
antBuild: minor changes
svn path=/nixpkgs/trunk/; revision=24376
Diffstat (limited to 'pkgs/build-support/release/ant-build.nix')
-rw-r--r-- | pkgs/build-support/release/ant-build.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/build-support/release/ant-build.nix b/pkgs/build-support/release/ant-build.nix index 4c8d5fbac75e..f6882de54d0a 100644 --- a/pkgs/build-support/release/ant-build.nix +++ b/pkgs/build-support/release/ant-build.nix @@ -1,5 +1,6 @@ { src -, stdenv +, pkgs +, stdenv ? pkgs.stdenv , name , antTargets ? [] , jars ? [] @@ -7,6 +8,9 @@ , antProperties ? [] , antBuildInputs ? [] , buildfile ? "build.xml" +, ant ? pkgs.ant +, jre ? pkgs.jre +, hydraAntLogger ? pkgs.hydraAntLogger , ... } @ args: let @@ -79,11 +83,13 @@ stdenv.mkDerivation ( ''; } - // removeAttrs args ["antProperties"] // + // removeAttrs args ["antProperties" "buildInputs" "pkgs"] // { name = name + (if src ? version then "-" + src.version else ""); + buildInputs = [ant jre] ++ stdenv.lib.optional (args ? buildInputs) args.buildInputs ; + postHook = '' ensureDir $out/nix-support echo "$system" > $out/nix-support/system |