src/plat/*: allow to override hostPlatform

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

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

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

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

Loading…
Cancel
Save