mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-29 01:14:09 +03:00
74 lines
1.6 KiB
Nix
74 lines
1.6 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
drv-parts,
|
|
dependencySets,
|
|
...
|
|
}: let
|
|
l = lib // builtins;
|
|
t = l.types;
|
|
in {
|
|
options.mach-nix = {
|
|
pythonSources = l.mkOption {
|
|
type = t.package;
|
|
description = ''
|
|
A package that contains fetched python sources.
|
|
Each single python source must be located in a subdirectory named after the package name.
|
|
'';
|
|
};
|
|
|
|
substitutions = l.mkOption {
|
|
type = t.lazyAttrsOf t.package;
|
|
description = ''
|
|
Substitute individual python packages from nixpkgs.
|
|
'';
|
|
default = {};
|
|
};
|
|
|
|
manualSetupDeps = l.mkOption {
|
|
type = t.lazyAttrsOf (t.listOf t.str);
|
|
description = ''
|
|
Replace the default setup dependencies from nixpkgs for sdist based builds
|
|
'';
|
|
default = {};
|
|
example = {
|
|
vobject = [
|
|
"python-dateutil"
|
|
"six"
|
|
];
|
|
libsass = [
|
|
"six"
|
|
];
|
|
};
|
|
};
|
|
|
|
drvs = l.mkOption {
|
|
type = t.attrsOf (t.submoduleWith {
|
|
modules = [drv-parts.modules.drv-parts.core];
|
|
specialArgs = {inherit dependencySets;};
|
|
});
|
|
description = "drv-parts modules that define python dependencies";
|
|
};
|
|
|
|
# INTERNAL
|
|
|
|
dists = l.mkOption {
|
|
type = t.lazyAttrsOf t.str;
|
|
description = ''
|
|
Attrs which depend on IFD and therefore should be cached
|
|
'';
|
|
internal = true;
|
|
readOnly = true;
|
|
};
|
|
|
|
dependencyTree = l.mkOption {
|
|
type = t.lazyAttrsOf t.anything;
|
|
description = ''
|
|
Dependency tree of the python environment
|
|
'';
|
|
internal = true;
|
|
readOnly = true;
|
|
};
|
|
};
|
|
}
|