|
10 | 10 |
|
11 | 11 | flake-utils.follows = "k-framework/flake-utils"; |
12 | 12 |
|
13 | | - uv2nix.url = "github:pyproject-nix/uv2nix/680e2f8e637bc79b84268949d2f2b2f5e5f1d81c"; |
14 | | - # stale nixpkgs is missing the alias `lib.match` -> `builtins.match` |
15 | | - # therefore point uv2nix to a patched nixpkgs, which introduces this alias |
16 | | - # this is a temporary solution until nixpkgs us up-to-date again |
17 | | - uv2nix.inputs.nixpkgs.url = "github:runtimeverification/nixpkgs/libmatch"; |
| 13 | + uv2nix.url = "github:pyproject-nix/uv2nix/c8cf711802cb00b2e05d5c54d3486fce7bfc8f7c"; |
| 14 | + # uv2nix requires a newer version of nixpkgs |
| 15 | + # therefore, we pin uv2nix specifically to a newer version of nixpkgs |
| 16 | + # until we replaced our stale version of nixpkgs with an upstream one as well |
| 17 | + # but also uv2nix requires us to call it with `callPackage`, so we add stuff |
| 18 | + # from the newer nixpkgs to our stale nixpkgs via an overlay |
| 19 | + nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; |
| 20 | + uv2nix.inputs.nixpkgs.follows = "nixpkgs-unstable"; |
18 | 21 | # uv2nix.inputs.nixpkgs.follows = "nixpkgs"; |
19 | | - pyproject-build-systems.url = "github:pyproject-nix/build-system-pkgs/7dba6dbc73120e15b558754c26024f6c93015dd7"; |
| 22 | + pyproject-build-systems.url = "github:pyproject-nix/build-system-pkgs/795a980d25301e5133eca37adae37283ec3c8e66"; |
20 | 23 | pyproject-build-systems = { |
21 | 24 | inputs.nixpkgs.follows = "nixpkgs"; |
22 | 25 | inputs.uv2nix.follows = "uv2nix"; |
|
34 | 37 | uv2nix, |
35 | 38 | pyproject-nix, |
36 | 39 | pyproject-build-systems, |
| 40 | + nixpkgs-unstable, |
37 | 41 | ... }: |
38 | 42 | let |
39 | 43 | pythonVer = "310"; |
40 | 44 | in flake-utils.lib.eachDefaultSystem (system: |
41 | 45 | let |
| 46 | + pkgs-unstable = import nixpkgs-unstable { |
| 47 | + inherit system; |
| 48 | + }; |
| 49 | + # for uv2nix, remove this once we updated to a newer version of nixpkgs |
| 50 | + staleNixpkgsOverlay = final: prev: { |
| 51 | + inherit (pkgs-unstable) replaceVars; |
| 52 | + }; |
42 | 53 | uvOverlay = final: prev: { |
43 | 54 | uv = uv2nix.packages.${final.system}.uv-bin; |
44 | 55 | }; |
|
65 | 76 | pkgs = import nixpkgs { |
66 | 77 | inherit system; |
67 | 78 | overlays = [ |
| 79 | + staleNixpkgsOverlay |
68 | 80 | uvOverlay |
69 | 81 | kOverlay |
70 | 82 | kwasmOverlay |
|
0 commit comments