From d0960631e362cc5ff4f4a7c0d4ffdb3761c7f248 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Thu, 21 Nov 2024 20:00:47 +0800 Subject: [PATCH] templates/python-uv: use build system package repository --- templates/python-uv/flake.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/templates/python-uv/flake.nix b/templates/python-uv/flake.nix index 96266a9..8ff539b 100644 --- a/templates/python-uv/flake.nix +++ b/templates/python-uv/flake.nix @@ -26,7 +26,13 @@ (pkgs.callPackage inputs.pyproject-nix.build.packages { python = pkgs.python311; }).overrideScope - (lib.composeExtensions overlay pyprojectOverrides); + ( + lib.composeManyExtensions [ + inputs.pyproject-build-systems.overlays.default + overlay + pyprojectOverrides + ] + ); in { devshells.default = { @@ -104,5 +110,11 @@ inputs.pyproject-nix.follows = "pyproject-nix"; 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"; + }; }; }