mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 12:22:37 +03:00
Avoid polluting lib namespace unncessarily
This commit is contained in:
parent
9ce7175cfe
commit
01a3f0b8aa
@ -81,7 +81,7 @@ rec {
|
||||
});
|
||||
};
|
||||
|
||||
in lib.makeExtensibleWithInterface (x: o: interface (addOverrideFuncs x o) o) (output: self: {
|
||||
in lib.fixedPoints.makeExtensibleWithInterface (x: o: interface (addOverrideFuncs x o) o) (output: self: {
|
||||
args = origArgs;
|
||||
val = f output self.args self.val;
|
||||
});
|
||||
|
@ -60,7 +60,7 @@ let
|
||||
nixpkgsVersion mod;
|
||||
|
||||
inherit (fixedPoints) fix fix' extends composeExtensions
|
||||
makeExtensible makeExtensibleWithCustomName makeExtensibleWithInterface;
|
||||
makeExtensible makeExtensibleWithCustomName;
|
||||
inherit (attrsets) attrByPath hasAttrByPath setAttrByPath
|
||||
getAttrFromPath attrVals attrValues catAttrs filterAttrs
|
||||
filterAttrsRecursive foldAttrs collect nameValuePair mapAttrs
|
||||
@ -88,8 +88,7 @@ let
|
||||
inherit (stringsWithDeps) textClosureList textClosureMap
|
||||
noDepEntry fullDepEntry packEntry stringAfter;
|
||||
inherit (customisation) overrideDerivation makeOverridable
|
||||
callPackageWith callPackagesWith addPassthru hydraJob makeScope
|
||||
callPackageWithOutputWith;
|
||||
callPackageWith callPackagesWith addPassthru hydraJob makeScope;
|
||||
inherit (meta) addMetaAttrs dontDistribute setName updateName
|
||||
appendToName mapDerivationAttrset lowPrio lowPrioSet hiPrio
|
||||
hiPrioSet;
|
||||
|
@ -24,7 +24,7 @@ let
|
||||
};
|
||||
|
||||
callPackage = lib.callPackageWith (pkgs // { inherit haskellLib; });
|
||||
callPackageWithOutput = lib.callPackageWithOutputWith (pkgs // { inherit haskellLib; });
|
||||
callPackageWithOutput = lib.customisation.callPackageWithOutputWith (pkgs // { inherit haskellLib; });
|
||||
|
||||
in rec {
|
||||
lib = haskellLib;
|
||||
|
@ -86,5 +86,5 @@ in
|
||||
|
||||
newScope = extra: lib.callPackageWith (splicedPackages // extra);
|
||||
|
||||
newScopeWithOutput = extra: lib.callPackageWithOutputWith (splicedPackages // extra);
|
||||
newScopeWithOutput = extra: lib.customisation.callPackageWithOutputWith (splicedPackages // extra);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user