From 0431147fdda2cd1fc6aeacd90d646d0859ccb909 Mon Sep 17 00:00:00 2001 From: CrepeGoat Date: Tue, 24 Oct 2023 21:06:19 -0600 Subject: [PATCH] restricted valid host platforms to MIPS systems --- shell.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/shell.nix b/shell.nix index 0c53b8c6..6d937fe8 100644 --- a/shell.nix +++ b/shell.nix @@ -4,6 +4,12 @@ } }: +let + hostPlatformCheck = + with pkgs.stdenv.hostPlatform; + if isMips then null + else abort "cross platform target must be a MIPS target"; +in pkgs.callPackage ({ mkShell , gnumake42