Skip to content

Commit de17905

Browse files
committed
add comments for selectOutputs
1 parent 9c758fd commit de17905

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

internal/shellgen/tmpl/glibc-patch.nix.tmpl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,17 @@
3333
}
3434
else null) args;
3535

36+
# selectDefaultOutputs takes a derivation and returns a list of its
37+
# default outputs.
3638
selectDefaultOutputs = drv: selectOutputs drv (drv.meta.outputsToInstall or [ drv.out ]);
39+
40+
# selectAllOutputs takes a derivation and returns all of its outputs (^*).
3741
selectAllOutputs = drv: drv.all;
42+
43+
# selectOutputs takes a derivation and a list of output names, and returns
44+
# those outputs.
45+
#
46+
# Example: selectOutputs nixpkgs#foo [ "out", "lib" ]
3847
selectOutputs = drv: builtins.map (output: drv.${output});
3948

4049
patchDependencies = [

0 commit comments

Comments
 (0)