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
|
# Type: Path -> Overlay
|
||||||
baseDirectory:
|
baseDirectory:
|
||||||
|
self: super:
|
||||||
let
|
let
|
||||||
lib = (import ../../outputs.nix {}).lib;
|
lib = super.lib;
|
||||||
|
|
||||||
inherit (builtins)
|
inherit (builtins)
|
||||||
readDir
|
readDir
|
||||||
|
@ -39,9 +40,7 @@ let
|
||||||
# Filter out paths that don't have a ${nixFilename} file
|
# Filter out paths that don't have a ${nixFilename} file
|
||||||
(lib.filterAttrs (_: lib.pathExists))
|
(lib.filterAttrs (_: lib.pathExists))
|
||||||
];
|
];
|
||||||
in
|
in mapAttrs (name: file:
|
||||||
self: super:
|
|
||||||
mapAttrs (name: file:
|
|
||||||
self.callPackage file { inherit self super; package = super.${name}; }
|
self.callPackage file { inherit self super; package = super.${name}; }
|
||||||
) (packageFiles "override.nix")
|
) (packageFiles "override.nix")
|
||||||
// mapAttrs (name: file:
|
// mapAttrs (name: file:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue