diff options
author | Adam Joseph <adam@westernsemico.com> | 2023-07-27 20:56:11 -0700 |
---|---|---|
committer | Adam Joseph <adam@westernsemico.com> | 2023-07-27 21:31:59 -0700 |
commit | cb13669b0049e795c3421987fe9367d82a0525b1 (patch) | |
tree | c20f063dd6da0e2c8d48187e5be29604c9fb926c /pkgs/games/steam | |
parent | 35abc090402873ed73b2df539472d5a9648850fa (diff) |
lib.customisation: uncurry makeScopeWithSplicing
Deeply-curried functions are pretty error-prone in untyped languages like Nix. This is a particularly bad case because `top-level/splice.nix` *also* declares a makeScopeWithSplicing, but it takes *two fewer arguments*. Let's switch to attrset-passing form, to provide some minimal level of sanity-checking.
Diffstat (limited to 'pkgs/games/steam')
-rw-r--r-- | pkgs/games/steam/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/games/steam/default.nix b/pkgs/games/steam/default.nix index 370f22268a9ab..ebd0570d351a0 100644 --- a/pkgs/games/steam/default.nix +++ b/pkgs/games/steam/default.nix @@ -34,4 +34,8 @@ let }; keep = self: { }; extra = spliced0: { }; -in makeScopeWithSplicing (generateSplicesForMkScope "steamPackages") keep extra steamPackagesFun +in makeScopeWithSplicing { + otherSplices = generateSplicesForMkScope "steamPackages"; + inherit keep extra; + f = steamPackagesFun; +} |