Describe the bug
Seems that many darwin builds are now breaking suddenly. Seems to be a multitude of reasons. Just odd that it all seems to be specific to darwin.
https://hydra.nixos.org/eval/1576403
example error:
/nix/store/2kcifdkr7m14csgch00ajbz28irdwhff-bash-4.4-p23/bin/bash: /nix/store/r4fs9daiww3xcjrbdqd6av375ir8v7fn-cmake-3.16.5/bin/cmake: No such file or directory
make[2]: *** [source/blender/
I started getting build errors for Go-based packages likes sops when installing from nixpkgs-unstable on Darwin. I see the same error in the Hydra build log for sops.
# crypto/x509
/nix/store/216xqy610r0c3wm2zcf0hh9wsz6nhimv-go-1.14/share/go/src/crypto/x509/root_cgo_darwin.go:17:10: fatal error: 'Security/Security.h' file not found
#include <Security/Security.h>
^~~~~~~~~~~~~~~~~~~~~
1 error generated.
Similar error appear continuously on Hydra – reference to some other package where the file suddenly appears missing or malformed. I believe there's some problem in the builder set up. Too aggressive GC (if that's even possible) or some other corruption. The errors I've seen always disappeared on restarting the builds.
EDIT: but the Security/Security.h thing is probably something different than what I meant.
FWIW - this fixed my go issues on darwin
https://github.com/tsaeger/nixpkgs/commit/39386e9f81552720468acd0eb35becec863c0e37
seems related to: 060a9227c24639ca5a339fbb57b8e05a5eabb92e
reverting that commit also worked for me wrt golang on darwin.
Closing since most of these regressions were because buildGoModule https://github.com/NixOS/nixpkgs/pull/83099
Well, yes. Errors like in the OP and my post seem unrelated (e.g. blender) and appear non-deterministically for much longer time (i.e. not really recent regressions). Probably better have a separate thread now, if someone feels like investigating them deeper.