-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
doc: mention symlinkJoin in multiple-outputs section #36886
Conversation
This documentation would have saved me a handful of minutes! Can we merge this PR? |
In case anyone finds this issue before they find the paragraph mentioned here, this worked for me for combining multiple small scripts into a utility package. For example a {pkgs, ...}:
pkgs.symlinkJoin {
name = "my-scripts";
paths = [
(pkgs.writeShellScriptBin "script1" '' ... '');
(pkgs.writers.writePython3Bin "script2" {} '' ... '');
...
];
} Which installs to make script1, script2 available on the PATH. An example like that would've helped me, will open a PR |
Per NixOS#36886, would have saved me some time today to have this example
Done as 280cb89, but since found https://github.com/NixOS/nixpkgs/blob/master/doc/build-helpers/trivial-build-helpers.chapter.md#symlinkjoin-trivial-builder-symlinkjoin - will just cross-link instead. |
Per NixOS#36886, would have saved me some time today to have this example
Per NixOS#36886, would have saved me some time today to have the trivial builder more visible.
Per #36886, would have saved me some time today to have the trivial builder more visible.
Motivation for this change
Provide an additional exposure for
symlinkJoin
function by mentioning it in the documentation.Fixes #36883
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)