mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
Simplify return value of modules/default.nix
This commit is contained in:
parent
5546564104
commit
41e39deaec
2 changed files with 7 additions and 6 deletions
|
|
@ -31,9 +31,7 @@ let
|
|||
else showWarnings rawModule.config.warnings rawModule;
|
||||
in
|
||||
|
||||
if initialBuild
|
||||
then module.config
|
||||
else {
|
||||
{
|
||||
inherit (module.config.build) activationPackage;
|
||||
inherit (module.config.environment) path;
|
||||
inherit (module) config;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ let
|
|||
|
||||
nixpkgs = loadNixpkgs { };
|
||||
|
||||
config = import ../modules {
|
||||
modules = import ../modules {
|
||||
pkgs = nixpkgs;
|
||||
initialBuild = true;
|
||||
|
||||
|
|
@ -29,7 +29,10 @@ let
|
|||
};
|
||||
|
||||
callPackage = nixpkgs.lib.callPackageWith (
|
||||
nixpkgs // customPkgs // { inherit callPackage config; }
|
||||
nixpkgs // customPkgs // {
|
||||
inherit (modules) config;
|
||||
inherit callPackage;
|
||||
}
|
||||
);
|
||||
|
||||
customPkgs = rec {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue