feat(v1): inherit modules and lib from drv-parts

This commit is contained in:
DavHau 2023-03-28 16:38:56 +08:00
parent b23e6f39ec
commit dde26d7ffd
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,13 @@
# Re-export lib and drv-parts from `inputs.drv-parts`
{
config,
lib,
inputs,
...
}: {
# merge drv-parts from upstream drv-parts
config.flake.modules.drv-parts = inputs.drv-parts.modules.drv-parts;
# inherit lib from drv-parts
config.flake.lib = inputs.drv-parts.lib;
}

View File

@ -30,6 +30,7 @@
nixpkgs = inputs.nixpkgsV1.legacyPackages.${system};
};
specialArgs.drv-parts = inputs.drv-parts;
specialArgs.dream2nix = self;
};
in
evaled.config.public;