You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: builder for '/nix/store/l18xarwymyj2c1hgj41qbdypvzdmdwk5-steam.drv' failed with exit code 1;
last 4 log lines:
> Wrapping /nix/store/n5flhj17ksb4sh8yk9lljlkv44vlg4cp-steam/bin/steam
> Detected nested symlink, fixing
> '/nix/store/n5flhj17ksb4sh8yk9lljlkv44vlg4cp-steam/share/applications/steam.desktop' -> '/build/tmp.9xArYj9Rdb/steam.desktop'
> rm: cannot remove '/nix/store/n5flhj17ksb4sh8yk9lljlkv44vlg4cp-steam/share/applications': Is a directory
For full logs, run 'nix log /nix/store/l18xarwymyj2c1hgj41qbdypvzdmdwk5-steam.drv'.
error: 1 dependencies of derivation '/nix/store/k84b38nxhdaflb14iinfmkwn1y8q467l-wrapper-manager.drv' failed to build
error: 1 dependencies of derivation '/nix/store/449gkrshcxb04cij19i97rmlbq4a4gdh-man-paths.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ssd4iqgc6cjrl1jfpp34cgcv2zqm2vyf-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/msdgbvr0rikj7dafl23hpvnbz1y1h70k-wrapper-manager_fish-completions.drv' failed to build
error: 1 dependencies of derivation '/nix/store/p45s5qqq8f10msfag1vh2nwh99f1n7zc-nixos-system-quadraticpc-25.05.20250226.5135c59.drv' failed to build
This happens because WM tries to modify symlinks in-place. To make things simpler, I should probably create a new derivation, create the new destkop files there, and then merge the result with symlinkJoin.
It simply creates a new derivation by copying anything but the original desktop item to avoid wrapper-manager from deleting the $out/share/applications directory. A patched desktop item is added at the postBuild phase, which will not trigger the above error.
Activity
viperML commentedon Mar 3, 2025
This happens because WM tries to modify symlinks in-place. To make things simpler, I should probably create a new derivation, create the new destkop files there, and then merge the result with symlinkJoin.
Henry-Hiles commentedon Mar 3, 2025
Okay! If i can test anything, do let me know.
[-]Can't wrap steam[/-][+]Rework how desktop files are patched[/+]azuwis commentedon Jul 14, 2025
I have the same problem when wrapping
yazi:Log:
viperML commentedon Jul 14, 2025
Now that I look into it, using
buildEnvinstead ofsymlinkJoincould solve these issues, as it unrolls all the symlinks...viperML commentedon Jul 14, 2025
At the point that I'm fighting against symlinkJoin/lndir/buildEnv, I might as well write my own symlinker (#27)
StarryReverie commentedon Nov 15, 2025
Recently I also encountered the same problem when trying to wrap
yazi. I managed to work it around using the following code snippet:It simply creates a new derivation by copying anything but the original desktop item to avoid
wrapper-managerfrom deleting the$out/share/applicationsdirectory. A patched desktop item is added at thepostBuildphase, which will not trigger the above error.viperML commentedon Nov 17, 2025
Nixpkgs already provides configuration through a wrapper for yazi, so wrapper-manager is unnecessary: https://github.com/NixOS/nixpkgs/blob/50a96edd8d0db6cc8db57dab6bb6d6ee1f3dc49a/pkgs/by-name/ya/yazi/package.nix#L39-L42