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