Closed cswank closed 9 years ago
I think this is a problem because the build is being done in the nix store instead of a temp dir. cc @copumpkin as should be interested in a fix here too. Works fine on linux. Will try to avoid using the $out for all the build stuff, however then I can't test on osx.
Let me know how I can help for testing on os x and I'll be happy to.
Yeah, I actually have a fix for this pending on my pure-darwin branch (not master, as I mostly don't use that). As far as I can tell, the issue is that the cgo build is disabled on darwin (it's slightly tricky to enable, but not too hard). Individual go packages that need it then try to be helpful and build cgo for you, but try to install it into the go location in the store, which at that point is read-only. The solution is just to build cgo as part of the go package.
I think I've fixed this as of https://github.com/NixOS/nixpkgs/commit/57250fc2cc23a0cf1001698246b0910adc053ecf. @cswank., mind checking to see if you still have trouble?
Closing this for now as nix-shell
works just fine with the presented nix expression.
I'm trying to follow the example from https://www.blogger.com/comment.g?blogID=32054652&postID=2680995835029709788&page=1&token=1424702385950 and ran into an error. It was my first day messing with nix-shell so maybe user error, I'm not sure. Here is the error output:
And my default.nix:
I'm doing all this on os x 10.10.1