lib.makeScopeWithSplicing: provide default for keep,extra

These are often unneeded by the user.
This commit is contained in:
Artturin 2023-07-28 17:06:35 +03:00
parent cb13669b00
commit 3716ef19d8
11 changed files with 12 additions and 29 deletions

View file

@ -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;