about summary refs log tree commit diff
path: root/pkgs/development/tools/open-policy-agent/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/tools/open-policy-agent/default.nix')
-rw-r--r--pkgs/development/tools/open-policy-agent/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/tools/open-policy-agent/default.nix b/pkgs/development/tools/open-policy-agent/default.nix
index 891733635cce..4b11dd7576dd 100644
--- a/pkgs/development/tools/open-policy-agent/default.nix
+++ b/pkgs/development/tools/open-policy-agent/default.nix
@@ -8,7 +8,7 @@
 , enableWasmEval ? false
 }:
 
-assert enableWasmEval && stdenv.isDarwin -> builtins.throw "building with wasm on darwin is failing in nixpkgs";
+assert enableWasmEval && stdenv.hostPlatform.isDarwin -> builtins.throw "building with wasm on darwin is failing in nixpkgs";
 
 buildGoModule rec {
   pname = "open-policy-agent";
@@ -55,9 +55,9 @@ buildGoModule rec {
     # want but also limits the tests
     # Also avoid wasm tests on darwin due to wasmtime-go build issues
     getGoDirs() {
-      go list ./... | grep -v -e e2e ${lib.optionalString stdenv.isDarwin "-e wasm"}
+      go list ./... | grep -v -e e2e ${lib.optionalString stdenv.hostPlatform.isDarwin "-e wasm"}
     }
-  '' + lib.optionalString stdenv.isDarwin ''
+  '' + lib.optionalString stdenv.hostPlatform.isDarwin ''
     # remove tests that have "too many open files"/"no space left on device" issues on darwin in hydra
     rm server/server_test.go
   '';