mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-25 15:33:20 +03:00
feat(v1): inherit modules and lib from drv-parts
This commit is contained in:
parent
b23e6f39ec
commit
dde26d7ffd
13
v1/nix/modules/flake-parts/drv-parts.nix
Normal file
13
v1/nix/modules/flake-parts/drv-parts.nix
Normal 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;
|
||||
}
|
@ -30,6 +30,7 @@
|
||||
nixpkgs = inputs.nixpkgsV1.legacyPackages.${system};
|
||||
};
|
||||
specialArgs.drv-parts = inputs.drv-parts;
|
||||
specialArgs.dream2nix = self;
|
||||
};
|
||||
in
|
||||
evaled.config.public;
|
||||
|
Loading…
Reference in New Issue
Block a user