build.packages
build.packages.mkVirtualEnv
Create a virtual environment from dependency specification
Example
mkVirtualEnv "foo-env" {
foo = [ "extra" ];
}
Example (skip file)
(mkVirtualEnv "foo-env" {
foo = [ "extra" ];
}).overrideAttrs(old: {
# Skip LICENSE file from package root.
venvSkip = [ "LICENSE" ];
})
Example (ignore collisions)
(mkVirtualEnv "foo-env" {
foo = [ "extra" ];
}).overrideAttrs(old: {
# You could also ignore all collisions with:
# venvIgnoreCollisions = [ "*" ];
venvIgnoreCollisions = [ "lib/python${python.pythonVersion}/site-packages/build_tools" ];
})
name
: Venv name
spec
: Dependency specification