From 385ebea57dfc5d9887f2e8bfd7ad898b6bb359e1 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sun, 25 Aug 2024 18:44:23 +0200 Subject: [PATCH] examples/hello-from-qemu: add platforms Signed-off-by: Raito Bezarius --- examples/hello-from-qemu.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/hello-from-qemu.nix b/examples/hello-from-qemu.nix index 14b718a..78c4422 100644 --- a/examples/hello-from-qemu.nix +++ b/examples/hello-from-qemu.nix @@ -42,5 +42,12 @@ in rec { figlet ]; - nixpkgs.hostPlatform = lib.mkDefault "mipsel-linux"; + nixpkgs.hostPlatform = lib.mkDefault { + config = "mips-unknown-linux-musl"; + gcc = { + abi = "32"; + arch = "mips32"; # maybe mips_24kc- + }; + }; + nixpkgs.buildPlatform = lib.mkDefault "x86_64-linux"; }