Skip to content

Commit

Permalink
templates.hello-world: Use build system package repository
Browse files Browse the repository at this point in the history
The `pyproject.nix` base package set was deprecated in pyproject-nix/pyproject.nix#186.
  • Loading branch information
adisbladis committed Nov 20, 2024
1 parent 8c6faab commit caac954
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion templates/hello-world/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -27,6 +34,7 @@
nixpkgs,
uv2nix,
pyproject-nix,
pyproject-build-systems,
...
}:
let
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit caac954

Please sign in to comment.