Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nix is broken after update to macOS mojave 10.14.6 #3034

Closed
brandshaide opened this issue Aug 9, 2019 · 2 comments
Closed

Nix is broken after update to macOS mojave 10.14.6 #3034

brandshaide opened this issue Aug 9, 2019 · 2 comments

Comments

@brandshaide
Copy link

After a update to macOS mojave 10.14.6, Nix is broken and e. g. I cannot to this:

$ nix-shell --packages 'haskellPackages.ghcWithHoogle (pkgs: [ pkgs.text pkgs.safe ])' haskellPackages.ghcid

Complaining about

building '/nix/store/ffq5qwcjapiy4yawl9zl2xpnvx97jj4q-CF-osx-10.9.5-private.drv'...
dyld: Library not loaded: /usr/lib/system/libsystem_network.dylib
  Referenced from: /nix/store/3iidpvlcpwk3c08yxl4mxxw8ik78nis7-Libsystem-osx-10.9.5/lib/libSystem.dylib
  Reason: image not found
builder for '/nix/store/ffq5qwcjapiy4yawl9zl2xpnvx97jj4q-CF-osx-10.9.5-private.drv' failed due to signal 6 (Abort trap: 6)
cannot build derivation '/nix/store/q4ghwrmyaqah30ljvhma50c32a34lvsb-apple-framework-CoreText.drv': 1 dependencies couldn't be built

in particular:

Referenced from: /nix/store/3iidpvlcpwk3c08yxl4mxxw8ik78nis7-Libsystem-osx-10.9.5/lib/libSystem.dylib
  Reason: image not found

Reinstalled nix from scratch - but unfortunately didn't help. Any suggestions about how to solve this? Thanks in advance.
This is a issue very similar to this one

@matthewbauer
Copy link
Member

This issue existed when Mojave came out last August, but has since been resolved. I think you either need to update your channels, modify NIX_PATH, or update your local pin.

To verify, confirm that this works correctly:

nix-shell -I nixpkgs=channel:nixpkgs-19.03-darwin --packages 'haskellPackages.ghcWithHoogle (pkgs: [ pkgs.text pkgs.safe ])' haskellPackages.ghcid

@brandshaide
Copy link
Author

Thanks @matthewbauer for your support. I'm pretty new to Nix and indeed I've forgot to add nixpgks to the recent channel like this:

$ nix-channel --add http://nixos.org/channels/nixos-19.03 nixpkgs-19.03-darwin
$ nix-channel --update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants