mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
pkgs: use new args of ./modules
This commit is contained in:
parent
403336d4c4
commit
75d0c7c565
1 changed files with 5 additions and 8 deletions
|
|
@ -3,24 +3,21 @@
|
||||||
{ arch, nixOnDroidChannelURL ? null, nixpkgsChannelURL ? null }:
|
{ arch, nixOnDroidChannelURL ? null, nixpkgsChannelURL ? null }:
|
||||||
|
|
||||||
let
|
let
|
||||||
loadNixpkgs = import lib/load-nixpkgs.nix;
|
|
||||||
|
|
||||||
nixDirectory = callPackage ./nix-directory.nix { };
|
nixDirectory = callPackage ./nix-directory.nix { };
|
||||||
packageInfo = import "${nixDirectory}/nix-support/package-info.nix";
|
packageInfo = import "${nixDirectory}/nix-support/package-info.nix";
|
||||||
|
|
||||||
nixpkgs = loadNixpkgs { };
|
nixpkgs = import lib/load-nixpkgs.nix { };
|
||||||
|
|
||||||
modules = import ../modules {
|
modules = import ../modules {
|
||||||
pkgs = nixpkgs;
|
pkgs = nixpkgs;
|
||||||
|
|
||||||
|
extraModules = [ ../modules/build/initial-build.nix ];
|
||||||
|
extraSpecialArgs = { inherit customPkgs; };
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
# Fix invoking bash after initial build.
|
# Fix invoking bash after initial build.
|
||||||
user.shell = "${packageInfo.bash}/bin/bash";
|
user.shell = "${packageInfo.bash}/bin/bash";
|
||||||
|
|
||||||
imports = [ ../modules/build/initial-build.nix ];
|
|
||||||
|
|
||||||
_module.args = { inherit customPkgs; };
|
|
||||||
|
|
||||||
build = {
|
build = {
|
||||||
inherit arch;
|
inherit arch;
|
||||||
|
|
||||||
|
|
@ -39,7 +36,7 @@ let
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
customPkgs = rec {
|
customPkgs = {
|
||||||
inherit nixDirectory packageInfo;
|
inherit nixDirectory packageInfo;
|
||||||
bootstrap = callPackage ./bootstrap.nix { };
|
bootstrap = callPackage ./bootstrap.nix { };
|
||||||
bootstrapZip = callPackage ./bootstrap-zip.nix { };
|
bootstrapZip = callPackage ./bootstrap-zip.nix { };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue