mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
antBuild: minor changes
svn path=/nixpkgs/trunk/; revision=24376
This commit is contained in:
parent
40dd3ccf7b
commit
5a7fa1d061
|
@ -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
|
||||
|
|
|
@ -15,7 +15,7 @@ rec {
|
|||
} // args);
|
||||
|
||||
antBuild = args: import ./ant-build.nix (
|
||||
{ inherit stdenv;
|
||||
{ inherit pkgs;
|
||||
} // args);
|
||||
|
||||
mvnBuild = args: import ./maven-build.nix (
|
||||
|
|
Loading…
Reference in a new issue