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

The mkShell should set NIX_NO_SELF_RPATH = true; by default #173025

Open
CMCDragonkai opened this issue May 14, 2022 · 1 comment
Open

The mkShell should set NIX_NO_SELF_RPATH = true; by default #173025

CMCDragonkai opened this issue May 14, 2022 · 1 comment
Labels
0.kind: build failure A package fails to build 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md

Comments

@CMCDragonkai
Copy link
Member

The mkShell is intended to create a shell to be used by nix-shell. Therefore it's $out doesn't even exist.

Recently there was a PR #153194 that made the shell buildable, but I still think this should be the default.

The NIX_NO_SELF_RPATH = true; would ensure that $out/lib64 and $out/lib does not appear in the $NIX_LDFLAGS, and this would ensure that any compiled objects in that shell do not get these non-existent paths in their rpath.

Notify maintainers

@zimbatm

@zimbatm
Copy link
Member

zimbatm commented May 17, 2022

just a heads up; I'm not likely to address this issue. The stdenv has become too complicated and I don't know if it's going to break other people's use-cases.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
Projects
None yet
Development

No branches or pull requests

2 participants