chore(repo): use nixpkgs-python to get python version instead of setting languages.python.package

This commit is contained in:
cswimr 2024-11-20 12:27:59 -05:00
parent 216fa74a53
commit a40f78e88f
Signed by untrusted user: cswimr
GPG key ID: 0EC431A8DA8F8087
2 changed files with 41 additions and 1 deletions

View file

@ -1,6 +1,8 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-python.url = "github:cachix/nixpkgs-python";
nixpkgs-python.inputs = { nixpkgs.follows = "nixpkgs"; };
systems.url = "github:nix-systems/default";
devenv.url = "github:cachix/devenv";
devenv.inputs.nixpkgs.follows = "nixpkgs";
@ -33,7 +35,7 @@
{
languages.python = {
enable = true;
package = pkgs.python311;
version = "3.11";
uv = {
enable = true;
sync = {