about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2024-05-04 14:36:17 +0200
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2024-05-04 14:36:17 +0200
commitefd76ba1ef14c680e99a551506a66176045c3507 (patch)
tree5a9e6a6b50906a8244228f28e1f852c7ab697216
parent5ed0f58083bb8e22d4e4b05c911ffb1428f35ee1 (diff)
picoc: fix build on all hydra platforms
-rw-r--r--pkgs/development/interpreters/picoc/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/interpreters/picoc/default.nix b/pkgs/development/interpreters/picoc/default.nix
index ab59c0f4dd232..d27efe1f2b828 100644
--- a/pkgs/development/interpreters/picoc/default.nix
+++ b/pkgs/development/interpreters/picoc/default.nix
@@ -15,11 +15,15 @@ stdenv.mkDerivation {
 
   makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
 
+  env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [
+    "-Wno-error=implicit-function-declaration"
+  ]);
+
   enableParallelBuilding = true;
 
   # Tests are currently broken on i686 see
   # https://hydra.nixos.org/build/24003763/nixlog/1
-  doCheck = !stdenv.isi686;
+  doCheck = !stdenv.isi686 && !stdenv.isAarch64;
   checkTarget = "test";
 
   installPhase = ''
@@ -34,7 +38,6 @@ stdenv.mkDerivation {
   '';
 
   meta = with lib; {
-    broken = (stdenv.isLinux && stdenv.isAarch64);
     description = "Very small C interpreter for scripting";
     mainProgram = "picoc";
     longDescription = ''