src/plat/*: allow to override hostPlatform

master
Adam Joseph 2 years ago
parent 0bdf6e9355
commit 709bb2104d

@ -1,7 +1,8 @@
{ lib ? import <nixpkgs/lib>
, hostPlatform ? lib.systems.examples.gnu64
}:
{
hostPlatform = lib.systems.examples.gnu64;
inherit hostPlatform;
overlay = (final: prev: {

@ -1,4 +1,5 @@
{ lib ? import <nixpkgs/lib>
, hostPlatform ? lib.systems.examples.aarch64-multiplatform
}:
let
# order matters! this is also the order in which the modules are insmoded
@ -33,7 +34,7 @@ let
"drivers/net/wireless/marvell/mwifiex/mwifiex.ko"
];
in {
hostPlatform = lib.systems.examples.aarch64-multiplatform;
inherit hostPlatform;
overlay = (final: prev: {
nixpkgsOnBuildForHost = prev.nixpkgsOnBuildForBuild.pkgsCross.aarch64-multiplatform;

@ -1,10 +1,11 @@
{ lib ? import <nixpkgs/lib>
, hostPlatform ? lib.systems.examples.gnu64
}:
let
update_microcode = true;
in
{
hostPlatform = lib.systems.examples.gnu64;
inherit hostPlatform;
overlay = (final: prev: {

Loading…
Cancel
Save