mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
overrideDerivation: Check whether hostDrv' and
buildDrv' are present.
svn path=/nixpkgs/trunk/; revision=31727
This commit is contained in:
parent
bf71d12fd4
commit
5cd82587aa
1 changed files with 8 additions and 3 deletions
|
@ -42,9 +42,14 @@ rec {
|
||||||
in newDrv //
|
in newDrv //
|
||||||
{ meta = if drv ? meta then drv.meta else {};
|
{ meta = if drv ? meta then drv.meta else {};
|
||||||
passthru = if drv ? passthru then drv.passthru else {};
|
passthru = if drv ? passthru then drv.passthru else {};
|
||||||
hostDrv = overrideDerivation drv.hostDrv f;
|
}
|
||||||
buildDrv = overrideDerivation drv.buildDrv f;
|
//
|
||||||
};
|
(if (drv ? hostDrv && drv ? buildDrv)
|
||||||
|
then {
|
||||||
|
hostDrv = overrideDerivation drv.hostDrv f;
|
||||||
|
buildDrv = overrideDerivation drv.buildDrv f;
|
||||||
|
}
|
||||||
|
else { });
|
||||||
|
|
||||||
|
|
||||||
# usage: (you can use override multiple times)
|
# usage: (you can use override multiple times)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue