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 }:
|
||||
|
||||
let
|
||||
loadNixpkgs = import lib/load-nixpkgs.nix;
|
||||
|
||||
nixDirectory = callPackage ./nix-directory.nix { };
|
||||
packageInfo = import "${nixDirectory}/nix-support/package-info.nix";
|
||||
|
||||
nixpkgs = loadNixpkgs { };
|
||||
nixpkgs = import lib/load-nixpkgs.nix { };
|
||||
|
||||
modules = import ../modules {
|
||||
pkgs = nixpkgs;
|
||||
|
||||
extraModules = [ ../modules/build/initial-build.nix ];
|
||||
extraSpecialArgs = { inherit customPkgs; };
|
||||
|
||||
config = {
|
||||
# Fix invoking bash after initial build.
|
||||
user.shell = "${packageInfo.bash}/bin/bash";
|
||||
|
||||
imports = [ ../modules/build/initial-build.nix ];
|
||||
|
||||
_module.args = { inherit customPkgs; };
|
||||
|
||||
build = {
|
||||
inherit arch;
|
||||
|
||||
|
|
@ -39,7 +36,7 @@ let
|
|||
}
|
||||
);
|
||||
|
||||
customPkgs = rec {
|
||||
customPkgs = {
|
||||
inherit nixDirectory packageInfo;
|
||||
bootstrap = callPackage ./bootstrap.nix { };
|
||||
bootstrapZip = callPackage ./bootstrap-zip.nix { };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue