Repository navigation
Closed as not planned
Labels
2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
Description
collisions that occur while trying to obey nix-support/propagated-user-env-packages are silently ignored
as an example:
[clever@laptop:~]$ cat /nix/store/xi66kayy945y4ycc6fim4bffap935d6x-wpa_gui-2.6/nix-support/propagated-user-env-packages
/nix/store/fhsiyhrssrzwdhx2dgy1ghadpmwq0lks-qtbase-5.9.0-bin
[clever@laptop:~]$ cat /nix/store/k60z1dnzw2vrp6hv3y79bbzd8w1zv218-wireshark-qt-2.4.1/nix-support/propagated-user-env-packages
/nix/store/w24yh0wxh1s4d8bq7qkgd65fmv4zmlbq-qtbase-5.9.1-bin ...
wpa-gui depends on 5.9.0
wireshark depends on 5.9.1
[clever@laptop:~]$ nix-store -qR .nix-profile | grep qt
[clever@laptop:~]$
nothing in my profile depends on anything QT related
[clever@laptop:~]$ nix-env -i /nix/store/xi66kayy945y4ycc6fim4bffap935d6x-wpa_gui-2.6
installing ‘wpa_gui-2.6’
[clever@laptop:~]$ ls -l .nix-profile/lib/qt-5.9
lrwxrwxrwx 1 root root 71 Dec 31 1969 .nix-profile/lib/qt-5.9 -> /nix/store/fhsiyhrssrzwdhx2dgy1ghadpmwq0lks-qtbase-5.9.0-bin/lib/qt-5.9
the 5.9.0 libraries are now in my profile
[clever@laptop:~]$ nix-env -i /nix/store/k60z1dnzw2vrp6hv3y79bbzd8w1zv218-wireshark-qt-2.4.1
installing ‘wireshark-qt-2.4.1’
[clever@laptop:~]$ ls -l .nix-profile/lib/qt-5.9
total 17
dr-xr-xr-x 11 root root 16 Dec 31 1969 plugins
[clever@laptop:~]$ ls -l .nix-profile/lib/qt-5.9/plugins/platforms/
total 2
lrwxrwxrwx 1 root root 104 Dec 31 1969 libqminimal.so -> /nix/store/fhsiyhrssrzwdhx2dgy1ghadpmwq0lks-qtbase-5.9.0-bin/lib/qt-5.9/plugins/platforms/libqminimal.so
the 5.9.0 libraries are still in my profile
[clever@laptop:~]$ wireshark
Cannot mix incompatible Qt library (version 0x50900) with this library (version 0x50901)
and they break wireshark
[clever@laptop:~]$ nix-env -e wpa_gui
uninstalling ‘wpa_gui-2.6’
building path(s) ‘/nix/store/dxns08cqfyacwm5dahhzyb97f0kz9ggb-user-environment’
created 514 symlinks in user environment
[clever@laptop:~]$ wireshark
removing wpa_gui restores the ability to run wireshark
Reacted by tnias and BlessJah
Metadata
Metadata
Assignees
Labels
2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
Activity
dtzWill commentedon Feb 2, 2018
Is this a nix (nix-env) bug?
Should this result in an error? (assuming no simple way resolve conflict such that both work?)
dtzWill commentedon Feb 2, 2018
While improving/changing the handling of qt deps solves the immediate concern, if I'm understanding correctly there is still the issue of conflicts in propagated-user-env-packages being silently ignored.
As my questions above hint, I think this is a bug and attempts to install packages with such conflicts should be an error. Especially if the result is (likely) broken anyway.
stale commentedon Jun 5, 2020
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:
qweered commentedon Jan 11, 2026
Closing as stale, if still an issue please comment