Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 11 lines 445 B view raw
1diff -ru a/src/main/native/unix_jni_darwin.cc b/src/main/native/unix_jni_darwin.cc 2--- a/src/main/native/unix_jni_darwin.cc 1980-01-01 00:00:00.000000000 -0500 3+++ b/src/main/native/unix_jni_darwin.cc 2021-11-27 20:35:29.000000000 -0500 4@@ -270,6 +270,7 @@ 5 } 6 7 int portable_suspend_count() { 8+ if (getenv("NIX_BUILD_TOP")) return 0; 9 static dispatch_once_t once_token; 10 static SuspendState suspend_state; 11 dispatch_once(&once_token, ^{