Skip to content

buildEnv: support force-creating all directories and symlinking only files #4621

Closed

Description

@abbradar

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.

Activity

  1. abbradar commented on Oct 22, 2014

    @abbradar
    MemberAuthor

    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.

  2. peti commented on Oct 22, 2014

    @peti
    Member

    👍 This would be useful, indeed.

  3. added
    0.kind: enhancement
    on Oct 22, 2014
  4. lucabrunox commented on Nov 3, 2014

    @lucabrunox
    Contributor

    I'd go for listing directories that shall not be symlinked.

  5. peti commented on Nov 3, 2014

    @peti
    Member

    My use-case required all directories to be created for real, because I don't know ahead of time the names of those directories.

  6. abbradar commented on Jan 27, 2016

    @abbradar
    MemberAuthor
  7. vcunat commented on Jan 27, 2016

    @vcunat
    Member

    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.

  8. self-assigned this
    on Jan 28, 2016
  9. rasendubi commented on Jul 10, 2016

    @rasendubi
    Member

    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" ]).

  10. vcunat commented on Jul 14, 2016

    @vcunat
    Member

    Note that we also have symlinkJoin function which is a thin wrapper around the lndir command.

  11. Profpatsch commented on Jun 23, 2018

    @Profpatsch
    Member

    So between @rasendubi’s comment and @vcunat’s comment, can this issue be considered fixed?

  12. stale commented on Jun 4, 2020

    @stale

    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:

    1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
    2. Ask on the NixOS Discourse.
    3. Ask on the #nixos channel on irc.freenode.net.
  13. added
    2.status: stale
    on Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

0.kind: enhancement2.status: stale

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions