NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.5k stars 12.99k forks source link

installing dwarf-fortress-full fails with the error: `Too many levels of symbolic links` #108324

Open Kaligule opened 3 years ago

Kaligule commented 3 years ago

Describe the bug

Installing the package dwarf-fortress-full fails with an error: Too many levels of symbolic links

To Reproduce

Just to clearify, I am using nix on macOS here (which works fine in general).

Run the following commands:

export NIXPKGS_ALLOW_UNFREE=1; # dwarf fortress is unfree
nix-env -iA nixpkgs.dwarf-fortress-packages.dwarf-fortress-full

This fails with exit code 100. The full output is the following:

warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
installing 'dwarf-fortress-full'
these derivations will be built:
  /nix/store/979b5k3xrmkgm7nj15lq81xaa4170his-soundsense-soundpack.drv
  /nix/store/9nwx30bkkdycv2424gp5yim11lsrcxrd-dwarf-therapist-41.1.5.drv
  /nix/store/gbmsf6d1gqxhv6dcf74ppk85gxs69hj1-legends-browser-1.17.1.drv
  /nix/store/q2gqbj2g69y3zzcyrccbmjjim8pbad2c-soundsense-2016-1_196.drv
  /nix/store/ccmk7jcpxlx3f7fgwcs56v23y1r7j7sf-dwarf-fortress-env-0.47.04.drv
  /nix/store/m926qhaqy0dkq83gi21c6p0a7c59d6az-dwarf-fortress-init.drv
  /nix/store/m8dx6r94q2p4zkgw9y995pn8iwfcx6wn-dwarf-fortress-0.47.04.drv
  /nix/store/c2wmf2fhmm82bqynycb91pzllnii53gk-dwarf-fortress-full.drv
building '/nix/store/gbmsf6d1gqxhv6dcf74ppk85gxs69hj1-legends-browser-1.17.1.drv'...
building '/nix/store/9nwx30bkkdycv2424gp5yim11lsrcxrd-dwarf-therapist-41.1.5.drv'...
building '/nix/store/979b5k3xrmkgm7nj15lq81xaa4170his-soundsense-soundpack.drv'...
unpacking sources
unpacking source archive /nix/store/j8r9rbfwcspg3v8r2br3zfwaijlza1im-source
/nix/store/x0b0qwrlvcnmxf1zgp3jx87yfrx5n57n-stdenv-darwin/setup: line 748: /nix/store/92cs2kn1igkk7zc19kn1pzy56zrffb03-dwarf-therapist-41.1.5/bin/dwarftherapist: Too many levels of symbolic links
builder for '/nix/store/9nwx30bkkdycv2424gp5yim11lsrcxrd-dwarf-therapist-41.1.5.drv' failed with exit code 1
cannot build derivation '/nix/store/c2wmf2fhmm82bqynycb91pzllnii53gk-dwarf-fortress-full.drv': 1 dependencies couldn't be built
error: build of '/nix/store/c2wmf2fhmm82bqynycb91pzllnii53gk-dwarf-fortress-full.drv' failed

Expected behavior The package should be installed without errors.

Additional context I use nix on macOS here. Other packages run just fine. Unfortunatelly I don't have access to a nixos machine atm, so I can't test there.

Notify maintainers

@a1russell @robbinch @roconnor @abbradar @numinit @shazow

Metadata The output of nix-shell -p nix-info --run "nix-info -m" is the following:

warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
 - system: `"x86_64-darwin"`
 - host os: `Darwin 19.6.0, macOS 10.15.6`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.3.9`
 - channels(jlippmann): `"darwin, nixpkgs-21.03pre253014.6625284c397"`
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
 - nixpkgs: `/Users/jlippmann/.nix-defexpr/channels/nixpkgs`
numinit commented 3 years ago

This doesn't appear to happen on Linux. On Darwin, Dwarf Therapist appears to be linked to itself...

numinit commented 3 years ago

Looks like it's a case insensitivity issue. :-(

Kaligule commented 3 years ago

I won't pretend that I have much knowledge of df, nixos or packages, but if I can help somehow (like looking for the right files on a mac), just tell me.

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info