mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +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 }:
|
||||
let
|
||||
nixpkgs-lib = lib;
|
||||
in
|
||||
|
||||
{ system ? builtins.currentSystem or "x86_64-darwin"
|
||||
, pkgs ? null
|
||||
, lib ? nixpkgs-lib
|
||||
, modules
|
||||
, inputs
|
||||
, baseModules ? import ./modules/module-list.nix
|
||||
|
@ -44,7 +48,7 @@ let
|
|||
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;
|
||||
specialArgs = { modulesPath = builtins.toString ./modules; } // specialArgs;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue