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
{{ message }}
Repository navigation
buildEnv: support force-creating all directories and symlinking only files #4621
0.kind: enhancementAdd something new or improve an existing system.2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
This would simplify, for example, #4577 expression (or maybe there is just another, better way?). Another (more grained) approach would be to add a list argument which specifies directories that should be created and not symlinked.
This also would be good for abbradar@4ecc6d5 . buildEnv is actually a very good and clean way to create such wrappers in my opinion, apart from this issue.
Dealing with NixOS/nix#341 will (probably) include implementing buildEnv in C++. After that I assume nixpkgs will just directly use buildEnv from nix. (For now it isn't really important how exactly.)
Hopefully the issue won't be stranded for too long anymore.
I've opened a PR that creates directories for all pathsToLink (#16828). While it not exactly follows this proposal, it may fix the issue when names are known ahead of time (pathsToLink = [ "/" "/real/directory" ]).
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:
Search for maintainers and people that previously touched the related code and @ mention them in a comment.
0.kind: enhancementAdd something new or improve an existing system.2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
Activity
abbradar commentedon Oct 22, 2014
This also would be good for abbradar@4ecc6d5 . buildEnv is actually a very good and clean way to create such wrappers in my opinion, apart from this issue.
peti commentedon Oct 22, 2014
👍 This would be useful, indeed.
lucabrunox commentedon Nov 3, 2014
I'd go for listing directories that shall not be symlinked.
peti commentedon Nov 3, 2014
My use-case required all directories to be created for real, because I don't know ahead of time the names of those directories.
abbradar commentedon Jan 27, 2016
For recent examples of workarounds see https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/dwarf-fortress/wrapper/default.nix#L23. I have quite a bit of those scattered across nixpkgs now.
vcunat commentedon Jan 27, 2016
Dealing with NixOS/nix#341 will (probably) include implementing
buildEnvin C++. After that I assume nixpkgs will just directly usebuildEnvfrom nix. (For now it isn't really important how exactly.)Hopefully the issue won't be stranded for too long anymore.
rasendubi commentedon Jul 10, 2016
I've opened a PR that creates directories for all pathsToLink (#16828). While it not exactly follows this proposal, it may fix the issue when names are known ahead of time (
pathsToLink = [ "/" "/real/directory" ]).vcunat commentedon Jul 14, 2016
Note that we also have
symlinkJoinfunction which is a thin wrapper around thelndircommand.Profpatsch commentedon Jun 23, 2018
So between @rasendubi’s comment and @vcunat’s comment, can this issue be considered fixed?
stale commentedon Jun 4, 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: