Noogλe
search input
Function of the day
Call the package function in the file
fnwith the required arguments automatically. The function is called with the argumentsargs, but any missing arguments are obtained fromautoArgs. This function is intended to be partially parameterised, e.g.,callPackage = callPackageWith pkgs; pkgs = { libfoo = callPackage ./foo.nix { }; libbar = callPackage ./bar.nix { }; };If the
libbarfunction expects an argument namedlibfoo, it is automatically passed as an argument. Overrides or missing arguments can be supplied inargs, e.g.<!-- TODO: Apply "Example:" tag to the examples above -->libbar = callPackage ./bar.nix { libfoo = null; enableX11 = true; };Inputs
autoArgs-
1. Function argument
fn-
2. Function argument
args-
3. Function argument
Type
callPackageWith :: AttrSet -> ((AttrSet -> a) | Path) -> AttrSet -> a