Repository navigation
Use symlinkJoin for wrappers - #15002
Conversation
|
By analyzing the blame information on this pull request, we identified @cdepillabout, @shak-mar and @bjornfor to be potential reviewers |
4404bf5 to
8415fa3
Compare
|
I've tested manually all the wrappers and checked our their contents -- they seem to behave the same. As this also fixes a package and seems a good cleanup, let's merge. Full disclosure: this is the last package I need to fix before all packages in my configuration finally build ^_^. |
|
Ooh, this should be useful in the Haskell packaging, where we currently use |
|
Why is |
|
@edolstra My understanding is that |
You don't need nasty work-arounds: you can just create the files to be added in a separate derivation (e.g. |
|
Hm, this won't work because those wrappers often need to refer to |
|
Ah, I see. You can always hack around it, e.g. only create empty dirs in that A couple months ago I also needed to convert symlinks to directories for a service that was locating configuration relative to detected executable location. |
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandboxinnix.confon non-NixOS)
nix-shell -p nox --run "nox-review wip"./result/bin/)This extends
symlinkJoinfunction to accept a set with several additional arguments, and uses that to refactor many buildEnv-and-wrap-style wrappers in the tree. Also fixesdwarf-therapist.cc @magnetophon @avnik @ericsagnes