File tree Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 3838 workspace = uv2nix . lib . workspace . loadWorkspace { workspaceRoot = ./. ; } ;
3939
4040 workspace-overlay = workspace . mkPyprojectOverlay {
41- sourcePreference = "wheel" ; # or sourcePreference = "sdist";
41+ sourcePreference = "wheel" ;
42+ } ;
43+
44+ editable-overlay = workspace . mkEditablePyprojectOverlay {
45+ root = "$REPO_ROOT" ;
4246 } ;
4347
4448 pyproject-overlay = final : prev : {
5660 extensions = pkgs . lib . composeManyExtensions [
5761 pyproject-build-systems . overlays . default
5862 workspace-overlay
63+ editable-overlay
5964 pyproject-overlay
6065 ] ;
6166 base-python = pkgs . callPackage pyproject-nix . build . packages {
8287 shellHook = ''
8388 # Undo dependency propagation by nixpkgs.
8489 unset PYTHONPATH
90+ export REPO_ROOT=$(git rev-parse --show-toplevel)
8591 '' ;
8692 packages = [ python-env ] ++ ( dev-tools pkgs ) ;
8793 } ;
You can’t perform that action at this time.
0 commit comments