NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.35k stars 14.31k forks source link

Get error building gitAndTools on macOS #40783

Open nikitavoloboev opened 6 years ago

nikitavoloboev commented 6 years ago

Issue description

Trying to install Git by running on macOS:

nix-env -iA nixpkgs.gitAndTools

I get an error:

copying path '/nix/store/gyqk03k48ll00l4b6s7yik50dk9kysrq-darcs-to-git-2015-06-04' from 'https://cache.nixos.org'...
copying path '/nix/store/zhc7rd7443rjdy5k3wbig7zh43xwrr5f-persistent-sqlite-2.6.4' from 'https://cache.nixos.org'...
copying path '/nix/store/alh05gzjwzl84gd2ls9ihcbhq777cya3-esqueleto-2.5.3' from 'https://cache.nixos.org'...
copying path '/nix/store/khgrba7ssylmqmqk6b1ihi7pabf69xsg-yesod-persistent-1.4.3' from 'https://cache.nixos.org'...
copying path '/nix/store/pi5rh24633025mzkh0n5rx85bjcvgxl5-lens-4.16.1' from 'https://cache.nixos.org'...
copying path '/nix/store/8qadw4mygllkp4x84j6r1yhx1abix5n4-yesod-form-1.4.16' from 'https://cache.nixos.org'...
copying path '/nix/store/w3fhlpgy446zmrh7a7m555v12r2jf96d-yesod-1.4.5' from 'https://cache.nixos.org'...
copying path '/nix/store/vbaafggycv3rncibhi4jhfr2nkfq3hbp-yesod-test-1.5.9.1' from 'https://cache.nixos.org'...
error: build failed
builder for '/nix/store/3al8xlgszp2pdhlxxfdmwwlixwmhxvrf-git-dit-0.4.0.drv' failed with exit code 101
error: build of '/nix/store/3al8xlgszp2pdhlxxfdmwwlixwmhxvrf-git-dit-0.4.0.drv', '/nix/store/l6vql2d174slaz3y583qbkx5431nx3wx-git-annex-6.20180427.drv', '/nix/store/rdrni9ajk5596dahz6247nv8z8zbvfy2-git-codeowners-0.1.2.drv' failed

Steps to reproduce

Run the command above on macOS.

Technical details

❯ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-darwin"`
 - host os: `Darwin 15.6.0, macOS 10.11.6`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.0.2`
 - channels(nikivi): `"darwin"`
 - channels(root): `"nixpkgs-18.09pre140221.977c207f229"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
knedlsepp commented 6 years ago

The problem you're experiencing is that one of the many packages in the gitAndTools attribute set doesn't build on darwin in current master. (git-dit, git-annex and git-codeowners as from your logs). While this certainly needs fixing, you probably only want to install nixpkgs.gitAndTools.gitFull or nixpkgs.gitAndTools.gitMinimal, and not the entirety of all git-related tools. The former includes GUI and SVN support: https://github.com/NixOS/nixpkgs/blob/7610c10143ad202a3024c0735fec145c48a7d108/pkgs/applications/version-management/git-and-tools/default.nix#L39-L43 To see what gitAndTools includes, you can use the search subcommand: nix search gitAndTools. I personally think that the way the git-related tools are currently aggregated in gitAndTools adds a confusing additional layer of complexity; we should probably get rid of this additional hierarchy.

stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.