< Back

mkWrapperSource file

Options

binaryName#

The name of the binary to be wrapped.

This sets the meta.mainProgram of the wrapped package, and the sole entry of binaryPaths to wrap with.

Type
string

binaryPaths#

The path of the binaries within the input derivation to be wrapped.

This should only be set if the binary isn't inside $out/bin, or if multiple binaries should be wrapped. If it is a single binary inside $out/bin, binaryName can be used instead.

Type
listOf<string>

environment#

Environment variables to be set during the execution of the wrapped program.

Type
attrsOf<union<null, pathLike, struct<readFromFileAtRuntime>>>
Default
{}

extraPaths#

Extra derivations which should have their directory structures replicated in the final package.

Type
listOf<derivation>
Default
[]

flags#

Flags to be automatically appended to the wrapped program.

Type
listOf<string>
Default
[]

package#

The package to be wrapped.

Type
derivation

pname#

The name of the package to be wrapped.

Type
string

postWrap#

Commands to be run after the wrapping process in the build steps.

Type
nullOr<string>

preWrap#

Commands to be run before the wrapping process in the build steps.

Type
nullOr<string>

Symlinks to be included in the resulting derivation. Each key specifies the location within the derivation to create the symlink. Each value specifies where the symlink should be directed to.

Type
attrsOf<nullOr<pathLike>>
Default
{}

wrapperArgs#

Extra args passed directly to wrapProgram.

Type
nullOr<string>