templates/python-uv: use build system package repository

This commit is contained in:
Lu Wang 2024-11-21 20:00:47 +08:00
parent 52042f73bd
commit d0960631e3
Signed by: rebmit
SSH key fingerprint: SHA256:3px8QV1zEerIrEWHaqtH5rR9kjetyRST5EipOPrd+bU

View file

@ -26,7 +26,13 @@
(pkgs.callPackage inputs.pyproject-nix.build.packages { (pkgs.callPackage inputs.pyproject-nix.build.packages {
python = pkgs.python311; python = pkgs.python311;
}).overrideScope }).overrideScope
(lib.composeExtensions overlay pyprojectOverrides); (
lib.composeManyExtensions [
inputs.pyproject-build-systems.overlays.default
overlay
pyprojectOverrides
]
);
in in
{ {
devshells.default = { devshells.default = {
@ -104,5 +110,11 @@
inputs.pyproject-nix.follows = "pyproject-nix"; inputs.pyproject-nix.follows = "pyproject-nix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
pyproject-build-systems = {
url = "github:pyproject-nix/build-system-pkgs";
inputs.pyproject-nix.follows = "pyproject-nix";
inputs.uv2nix.follows = "uv2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
} }