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

noweb: fix installation of manpages, use placeholders #81042

Merged
merged 1 commit into from Mar 22, 2020

Conversation

KoviRobi
Copy link
Contributor

@KoviRobi KoviRobi commented Feb 25, 2020

The problem was that nix passes lists as space-separated strings not as
arrays of strings, so "${foo[@]}" doesn't work as intended because
it's not an array.

Also, using builtins.placeholder instead of passing "$(out)" to bash, as
that's not what we want to do. (As in bash "$(...)" is shell expansion, unsure if that worked at all.)

Motivation for this change

(This was ZHF: #80379 but a different PR resolved that, though it doesn't now install man-pages. This fixes that.)

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot requested a review from yurrriq February 25, 2020 19:15
@KoviRobi KoviRobi changed the title noweb: fix installation, use placeholders [ZHF] noweb: fix installation, use placeholders Feb 25, 2020
@yurrriq
Copy link
Member

yurrriq commented Feb 26, 2020

Awesome, thank you!

This was referenced Mar 1, 2020
@ofborg ofborg bot requested a review from yurrriq March 2, 2020 17:25
The problem was that nix passes lists as space-separated strings not as
arrays of strings, so `"${foo[@]}"` doesn't work as intended because
it's not an array. Instead we pass it in a bash array.

Also, using builtins.placeholder instead of passing "$(out)" to bash, as
that's not what we want to do (the `$(...)` is the process expansion in
bash)
@KoviRobi KoviRobi changed the title [ZHF] noweb: fix installation, use placeholders noweb: fix installation of manpages, use placeholders Mar 4, 2020
@matthewbauer matthewbauer merged commit 6b95893 into NixOS:master Mar 22, 2020
@KoviRobi KoviRobi deleted the zhf-20.03-fix-noweb branch October 10, 2022 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants