mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-15 17:51:01 +00:00
eval-config: make lib overridable
This enables using flake lib.darwinSystem function with your custom lib.
This commit is contained in:
parent
14a12e9ee7
commit
74a0e71ff2
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,11 @@
|
||||||
{ lib }:
|
{ lib }:
|
||||||
|
let
|
||||||
|
nixpkgs-lib = lib;
|
||||||
|
in
|
||||||
|
|
||||||
{ system ? builtins.currentSystem or "x86_64-darwin"
|
{ system ? builtins.currentSystem or "x86_64-darwin"
|
||||||
, pkgs ? null
|
, pkgs ? null
|
||||||
|
, lib ? nixpkgs-lib
|
||||||
, modules
|
, modules
|
||||||
, inputs
|
, inputs
|
||||||
, baseModules ? import ./modules/module-list.nix
|
, baseModules ? import ./modules/module-list.nix
|
||||||
|
@ -44,7 +48,7 @@ let
|
||||||
literalDocBook = super.literalDocBook or super.literalExample;
|
literalDocBook = super.literalDocBook or super.literalExample;
|
||||||
});
|
});
|
||||||
|
|
||||||
eval = libExtended.evalModules (builtins.removeAttrs args [ "inputs" "pkgs" "system" ] // {
|
eval = libExtended.evalModules (builtins.removeAttrs args [ "lib" "inputs" "pkgs" "system" ] // {
|
||||||
modules = modules ++ [ argsModule pkgsModule ] ++ baseModules;
|
modules = modules ++ [ argsModule pkgsModule ] ++ baseModules;
|
||||||
specialArgs = { modulesPath = builtins.toString ./modules; } // specialArgs;
|
specialArgs = { modulesPath = builtins.toString ./modules; } // specialArgs;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue