pkgs/by-name-overlay: use lib from super instead of outputs.nix
This commit is contained in:
parent
f2407664c1
commit
e3264f1451
1 changed files with 3 additions and 4 deletions
|
@ -6,8 +6,9 @@
|
|||
|
||||
# Type: Path -> Overlay
|
||||
baseDirectory:
|
||||
self: super:
|
||||
let
|
||||
lib = (import ../../outputs.nix {}).lib;
|
||||
lib = super.lib;
|
||||
|
||||
inherit (builtins)
|
||||
readDir
|
||||
|
@ -39,9 +40,7 @@ let
|
|||
# Filter out paths that don't have a ${nixFilename} file
|
||||
(lib.filterAttrs (_: lib.pathExists))
|
||||
];
|
||||
in
|
||||
self: super:
|
||||
mapAttrs (name: file:
|
||||
in mapAttrs (name: file:
|
||||
self.callPackage file { inherit self super; package = super.${name}; }
|
||||
) (packageFiles "override.nix")
|
||||
// mapAttrs (name: file:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue