nodePackage: remove with statements in aliases

This commit is contained in:
Philip Taron 2024-08-16 14:01:08 -07:00
parent eded5c3275
commit 633c856885
No known key found for this signature in database

View File

@ -9,16 +9,16 @@ pkgs: lib: self: super:
let
# Removing recurseForDerivation prevents derivations of aliased attribute
# set to appear while listing all the packages available.
removeRecurseForDerivations = alias: with lib;
removeRecurseForDerivations = alias:
if alias.recurseForDerivations or false
then removeAttrs alias ["recurseForDerivations"]
then lib.removeAttrs alias ["recurseForDerivations"]
else alias;
# Disabling distribution prevents top-level aliases for non-recursed package
# sets from building on Hydra.
removeDistribute = alias: with lib;
if isDerivation alias then
dontDistribute alias
removeDistribute = alias:
if lib.isDerivation alias then
lib.dontDistribute alias
else alias;
# Make sure that we are not shadowing something from node-packages.nix.