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

Compability with KaOS #2051

Closed
ShalokShalom opened this issue Apr 6, 2018 · 2 comments
Closed

Compability with KaOS #2051

ShalokShalom opened this issue Apr 6, 2018 · 2 comments

Comments

@ShalokShalom
Copy link

ShalokShalom commented Apr 6, 2018

Hi there :)

I use kaosx.us as my distribution and installed nix via your shell script.

It seems like the symlinks to the actual binaries get randomly eaten:

nix-env -iA nixpkgs.nodejs
°installed
npm install -g elchemy
°installed
elchemy compile
zsh: command not found: elchemy
npm install -g elchemy
zsh: command not found: npm
nix-env -iA nixpkgs.nodejs
zsh: command not found: nix-env
find /nix/store -name 'nix-env' -type f  
/nix/store/6p2gambjac7xdkd2a7w1dsxdk1q5cq4d-nix-2.0/bin/nix-env
@ShalokShalom
Copy link
Author

I found that npm installs in its own directory. This is the default way in nix and it is well known, that this breaks all symlinks. The solution is considered to "defeat the sense of nix" and will accordingly to people in your irc channel, not be part of the npm build script. This means, every single new developer, who tries nix as package manager on his distribution, will experience that all breaks, once npm installs a package.

@dtzWill
Copy link
Member

dtzWill commented Apr 20, 2018

This seems to be entirely an issue for Nixpkgs. While this may be difficult to fix (and perhaps unlikely to be fixed as a result) the right thing is to report it over there so at least it can be tracked/discussed.

If you think this is indeed a problem with nix itself, please clarify or open a new issue :).

Hope this helps, sorry you're having troubles!

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