Skip to content

Commit

Permalink
Cleanup splice logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jonringer committed Oct 4, 2024
1 parent 6b2b03e commit 7463086
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions splice.nix
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ let
inherit (pkgs.stdenv) buildPlatform targetPlatform hostPlatform;
};

# TODO: xorg was removed from stdenv bootstrapping
splicedPackagesWithXorg = splicedPackages;

in

{
Expand All @@ -135,9 +132,9 @@ in
# `newScope' for sets of packages in `pkgs' (see e.g. `gnome' below).
callPackage = pkgs.newScope { };

callPackages = lib.callPackagesWith splicedPackagesWithXorg;
callPackages = lib.callPackagesWith splicedPackages;

newScope = extra: lib.callPackageWith (splicedPackagesWithXorg // extra);
newScope = extra: lib.callPackageWith (splicedPackages // extra);

# prefill 2 fields of the function for convenience
makeScopeWithSplicing = lib.makeScopeWithSplicing splicePackages pkgs.newScope;
Expand Down

0 comments on commit 7463086

Please sign in to comment.