Skip to content

Commit

Permalink
build: update uv2nix usage
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkolenz committed Nov 25, 2024
1 parent ba24e4d commit 6f3ee12
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 11 deletions.
2 changes: 2 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
asciinema-agg,
uv2nix,
pyproject-nix,
pyproject-build-systems,
}:
let
pdocRepo = fetchFromGitHub {
Expand Down Expand Up @@ -98,6 +99,7 @@ let
};
pythonSet = baseSet.overrideScope (
lib.composeManyExtensions [
pyproject-build-systems.overlays.default
pyprojectOverlay
pyprojectOverrides
]
Expand Down
41 changes: 34 additions & 7 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,20 @@
inputs.nixpkgs.follows = "nixpkgs";
};
pyproject-nix = {
url = "github:nix-community/pyproject.nix";
url = "github:pyproject-nix/pyproject.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
uv2nix = {
url = "github:adisbladis/uv2nix";
url = "github:pyproject-nix/uv2nix";
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";
};
};
outputs =
inputs@{
Expand All @@ -28,7 +34,6 @@
flake-parts,
systems,
flocken,
pyproject-nix,
uv2nix,
...
}:
Expand Down Expand Up @@ -74,7 +79,7 @@
};
};
legacyPackages.pythonSet = pkgs.callPackage ./default.nix {
inherit (inputs) uv2nix pyproject-nix;
inherit (inputs) uv2nix pyproject-nix pyproject-build-systems;
};
packages = {
inherit (pythonSet.makejinja.passthru) docs;
Expand Down

0 comments on commit 6f3ee12

Please # to comment.