diff --git a/src/default.nix b/src/default.nix index 67e704d..c05d878 100644 --- a/src/default.nix +++ b/src/default.nix @@ -1,13 +1,15 @@ +{ pkgsFun ? import +}: let lib = import ; nixpkgsArgs = { config.allowNonSource = false; }; - nixpkgsOnBuildForBuild = import nixpkgsArgs; + nixpkgsOnBuildForBuild = pkgsFun nixpkgsArgs; ownerboot = { hostPlatform?null, overlay }: (lib.makeScope lib.callPackageWith (self: { inherit lib nixpkgsOnBuildForBuild; - nixpkgsOnBuildForHost = import + nixpkgsOnBuildForHost = pkgsFun (nixpkgsArgs // (lib.optionalAttrs (hostPlatform!=null) { crossSystem = hostPlatform; }));