From caac9544d4c57ff6f175e3e0455c58736ce43870 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Wed, 20 Nov 2024 03:47:16 +0000 Subject: [PATCH] templates.hello-world: Use build system package repository The `pyproject.nix` base package set was deprecated in https://github.com/pyproject-nix/pyproject.nix/pull/186. --- templates/hello-world/flake.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/templates/hello-world/flake.nix b/templates/hello-world/flake.nix index 2e1e75f..e86eb4a 100644 --- a/templates/hello-world/flake.nix +++ b/templates/hello-world/flake.nix @@ -14,6 +14,13 @@ 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"; + }; }; # Disclaimer: Uv2nix is new and experimental. @@ -27,6 +34,7 @@ nixpkgs, uv2nix, pyproject-nix, + pyproject-build-systems, ... }: let @@ -70,7 +78,13 @@ (pkgs.callPackage pyproject-nix.build.packages { inherit python; }).overrideScope - (lib.composeExtensions overlay pyprojectOverrides); + ( + lib.composeManyExtensions [ + pyproject-build-systems.overlays.default + overlay + pyprojectOverrides + ] + ); in {