* Support setting postPhases.
svn path=/nixpkgs/trunk/; revision=33247
This commit is contained in:
parent
fbfa56c165
commit
06d28ca8f1
@ -13,6 +13,7 @@
|
|||||||
, src, stdenv
|
, src, stdenv
|
||||||
, name ? if doCoverageAnalysis then "nix-coverage" else "nix-build"
|
, name ? if doCoverageAnalysis then "nix-coverage" else "nix-build"
|
||||||
, failureHook ? null
|
, failureHook ? null
|
||||||
|
, postPhases ? []
|
||||||
, ... } @ args:
|
, ... } @ args:
|
||||||
|
|
||||||
stdenv.mkDerivation (
|
stdenv.mkDerivation (
|
||||||
@ -26,9 +27,6 @@ stdenv.mkDerivation (
|
|||||||
|
|
||||||
showBuildStats = true;
|
showBuildStats = true;
|
||||||
|
|
||||||
postPhases =
|
|
||||||
(stdenv.lib.optional doCoverageAnalysis "coverageReportPhase") ++ ["finalPhase"];
|
|
||||||
|
|
||||||
finalPhase =
|
finalPhase =
|
||||||
''
|
''
|
||||||
# Propagate the release name of the source tarball. This is
|
# Propagate the release name of the source tarball. This is
|
||||||
@ -105,6 +103,9 @@ stdenv.mkDerivation (
|
|||||||
|
|
||||||
inherit lcovExtraTraceFiles;
|
inherit lcovExtraTraceFiles;
|
||||||
|
|
||||||
|
postPhases = postPhases ++
|
||||||
|
(stdenv.lib.optional doCoverageAnalysis "coverageReportPhase") ++ ["finalPhase"];
|
||||||
|
|
||||||
meta = (if args ? meta then args.meta else {}) // {
|
meta = (if args ? meta then args.meta else {}) // {
|
||||||
description = if doCoverageAnalysis then "Coverage analysis" else "Native Nix build on ${stdenv.system}";
|
description = if doCoverageAnalysis then "Coverage analysis" else "Native Nix build on ${stdenv.system}";
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user