mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
lib.makeScopeWithSplicing: provide default for keep,extra
These are often unneeded by the user.
This commit is contained in:
parent
cb13669b00
commit
3716ef19d8
11 changed files with 12 additions and 29 deletions
|
@ -279,7 +279,15 @@ rec {
|
|||
|
||||
/* Like the above, but aims to support cross compilation. It's still ugly, but
|
||||
hopefully it helps a little bit. */
|
||||
makeScopeWithSplicing = { splicePackages, newScope }: { otherSplices, keep, extra, f }:
|
||||
makeScopeWithSplicing =
|
||||
{ splicePackages
|
||||
, newScope
|
||||
}:
|
||||
{ otherSplices
|
||||
, keep ? (_self: {})
|
||||
, extra ? (_spliced0: {})
|
||||
, f
|
||||
}:
|
||||
let
|
||||
spliced0 = splicePackages {
|
||||
pkgsBuildBuild = otherSplices.selfBuildBuild;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue