|
|
|
@ -5,25 +5,31 @@ let
|
|
|
|
|
nixpkgsArgs = { config.allowNonSource = false; };
|
|
|
|
|
nixpkgsOnBuildForBuild = pkgsFun nixpkgsArgs;
|
|
|
|
|
|
|
|
|
|
ownerboot = { hostPlatform?null, overlay }:
|
|
|
|
|
(lib.makeScope lib.callPackageWith (self: {
|
|
|
|
|
inherit lib nixpkgsOnBuildForBuild;
|
|
|
|
|
ownerboot = { hostPlatform?null, overlays }: let
|
|
|
|
|
base = final: prev: {
|
|
|
|
|
inherit hostPlatform;
|
|
|
|
|
nixpkgsOnBuildForHost = pkgsFun
|
|
|
|
|
(nixpkgsArgs
|
|
|
|
|
// (lib.optionalAttrs (final.hostPlatform!=null) {
|
|
|
|
|
crossSystem = final.hostPlatform;
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
nixpkgsOnBuildForHost = pkgsFun
|
|
|
|
|
(nixpkgsArgs // (lib.optionalAttrs (hostPlatform!=null) {
|
|
|
|
|
crossSystem = hostPlatform; }));
|
|
|
|
|
coreboot-toolchain = final.callPackage ./coreboot-toolchain { };
|
|
|
|
|
|
|
|
|
|
coreboot-toolchain = self.callPackage ./coreboot-toolchain { };
|
|
|
|
|
|
|
|
|
|
iasl_20180531 = self.nixpkgsOnBuildForBuild.callPackage ./coreboot/iasl_20180531 { };
|
|
|
|
|
coreboot = self.callPackage ./coreboot {
|
|
|
|
|
initramfs_image = self.initramfs;
|
|
|
|
|
iasl_20180531 = final.nixpkgsOnBuildForBuild.callPackage ./coreboot/iasl_20180531 { };
|
|
|
|
|
coreboot = final.callPackage ./coreboot {
|
|
|
|
|
initramfs_image = final.initramfs;
|
|
|
|
|
};
|
|
|
|
|
kernel = self.callPackage ./kernel { };
|
|
|
|
|
userspace = self.callPackage ./userspace { };
|
|
|
|
|
initramfs = self.callPackage ./initramfs { };
|
|
|
|
|
}))
|
|
|
|
|
.overrideScope' overlay;
|
|
|
|
|
kernel = final.callPackage ./kernel { };
|
|
|
|
|
userspace = final.callPackage ./userspace { };
|
|
|
|
|
initramfs = final.callPackage ./initramfs { };
|
|
|
|
|
};
|
|
|
|
|
in
|
|
|
|
|
(lib.makeScope
|
|
|
|
|
lib.callPackageWith
|
|
|
|
|
(self: { inherit lib nixpkgsOnBuildForBuild; })).overrideScope'
|
|
|
|
|
(lib.foldl' lib.composeExtensions (_: prev: prev) ([base] ++ overlays));
|
|
|
|
|
|
|
|
|
|
in {
|
|
|
|
|
# one entry for each supported platform
|
|
|
|
|
kevin = ownerboot (import ./platform/kevin { inherit lib; });
|
|
|
|
|