-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdefault.nix
More file actions
35 lines (30 loc) · 1.03 KB
/
default.nix
File metadata and controls
35 lines (30 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
lib,
callPackage,
pyproject-nix,
pyproject-build-systems,
kimp-pyk-pyproject,
pyproject-overlays,
python
}:
let
inherit (kimp-pyk-pyproject) lockFileOverlay workspace;
pyproject-util = callPackage pyproject-nix.build.util {};
pyproject-packages = callPackage pyproject-nix.build.packages {
inherit python;
};
buildSystemsOverlay = import ./build-systems-overlay.nix;
# construct package set
pythonSet = pyproject-packages.overrideScope (lib.composeManyExtensions ([
# make build tools available by default as these are not necessarily specified in python lock files
pyproject-build-systems.overlays.default
# include all packages from the python lock file
lockFileOverlay
# add build system overrides to certain python packages
buildSystemsOverlay
] ++ pyproject-overlays));
in pyproject-util.mkApplication {
# default dependancy group enables no optional dependencies and no dependency-groups
venv = pythonSet.mkVirtualEnv "kimp-env" workspace.deps.default;
package = pythonSet.kimp;
}