API Documentation
The following are all the options that you can use in wrapper-manager.
wrappers
Wrapper configuration. See the suboptions for configuration.
attribute set of (submodule)
{ }
wrappers.<name>.appendFlags
Append a flag to the invocation of the program, after any arguments passed to the wrapped executable.
list of (string or anything convertible to it)
[ ]
[
"--config" ./config.sh
"--ascii" ./ascii
]
wrappers.<name>.basePackage
Program to be wrapped.
wrappers.<name>.env
Structured environment variables.
attribute set of (submodule)
{ }
{
NIX_CONFIG = {
value = "allow-import-from-derivation = false";
};
}
wrappers.<name>.env.<name>.force
Whether the value should be always set to the specified value.
If set to true
, the program will not inherit the value of the variable
if it's already present in the environment.
Setting it to false when unsetting a variable (value = null) will make the option have no effect.
boolean
true if `value` is null, otherwise false
wrappers.<name>.env.<name>.name
Name of the variable.
wrappers.<name>.env.<name>.value
Value of the variable to be set.
Set to null
to unset the variable.
Note that any environment variable will be escaped. For example, value = "$HOME"
will be converted to the literal $HOME
, with its dollar sign.
null or (string or anything convertible to it)
wrappers.<name>.extraPackages
Extra packages to also wrap.
list of package
[ ]
[ pkgs.git-extras pkgs.delta ]
wrappers.<name>.extraWrapperFlags
Raw flags passed to makeWrapper.
See upstream documentation for make-wrapper.sh : https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/setup-hooks/make-wrapper.sh
strings concatenated with " "
""
"--argv0 foo --set BAR value"
wrappers.<name>.flags
Alias of {option}prependFlags
.
list of (string or anything convertible to it)
wrappers.<name>.overrideAttrs
Function to override attributes from the final package.
function that evaluates to a(n) (attribute set)
<function>
''
old: {
pname = "''${old.pname}-wrapped";
}
''
wrappers.<name>.pathAdd
Packages to append to PATH.
list of package
[ ]
[ pkgs.starship ]
wrappers.<name>.postBuild
Extra fragment of bash to be run after the main wrapper-manager code.
string
""
''
$out/bin/nvim -l ''${./check.lua}
''
wrappers.<name>.prependFlags
Prepend a flag to the invocation of the program, before any arguments passed to the wrapped executable.
list of (string or anything convertible to it)
[ ]
[
"--config" ./config.sh
"--ascii" ./ascii
]
wrappers.<name>.renames
Map of renames FROM = TO. Renames every binary /bin/FROM to /bin/TO, adjusting other necessary files.
attribute set of string
{ }
{
nvim = "custom-nvim";
}
wrappers.<name>.wrapped
(Output) Final wrapped package.