Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

concat: init #26699

Closed
wants to merge 1 commit into from
Closed

concat: init #26699

wants to merge 1 commit into from

Conversation

4z3
Copy link
Contributor

@4z3 4z3 commented Jun 18, 2017

Motivation for this change

The concat builder was introduced to allow creating wrapper derivations that retain access to other resources, like manpages.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@mention-bot
Copy link

@4z3, thanks for your PR! By analyzing the history of the files in this pull request, we identified @edolstra, @urkud and @vcunat to be potential reviewers.

@grahamc
Copy link
Member

grahamc commented Jun 19, 2017

is this different from buildEnv?

#
# {
# nixpkgs.config.packageOverrides = super: {
# hello = pkgs.concat "hello" [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this function is added to a rather big namespace, a more distinctive name is useful.
How about pkgs.concatPackages?

Copy link
Member

@vcunat vcunat Jun 19, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, lib.concat already exists (!) EDIT: ignore my confusion of namespaces.

@Mic92
Copy link
Member

Mic92 commented Jun 19, 2017

The functionality provided by this function overlaps with symlinkJoin.

@4z3
Copy link
Contributor Author

4z3 commented Jun 20, 2017

Indeed, this is just

name: paths: symlinkJoin {
  inherit name paths;
}

🦅

@4z3 4z3 closed this Jun 20, 2017
@4z3 4z3 deleted the concat branch June 20, 2017 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants