Skip to content

Commit

Permalink
Avoid polluting lib namespace unncessarily
Browse files Browse the repository at this point in the history
  • Loading branch information
shlevy committed Sep 28, 2017
1 parent 9ce7175 commit 01a3f0b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/customisation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down
5 changes: 2 additions & 3 deletions lib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/haskell-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/splice.nix
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,5 @@ in

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

newScopeWithOutput = extra: lib.callPackageWithOutputWith (splicedPackages // extra);
newScopeWithOutput = extra: lib.customisation.callPackageWithOutputWith (splicedPackages // extra);
}

0 comments on commit 01a3f0b

Please sign in to comment.