|
15 | 15 | inputs.nixpkgs.follows = "nixpkgs"; |
16 | 16 | }; |
17 | 17 | haskell-backend.follows = "k-framework/haskell-backend"; |
18 | | - uv2nix.url = "github:pyproject-nix/uv2nix/680e2f8e637bc79b84268949d2f2b2f5e5f1d81c"; |
19 | | - # stale nixpkgs is missing the alias `lib.match` -> `builtins.match` |
20 | | - # therefore point uv2nix to a patched nixpkgs, which introduces this alias |
21 | | - # this is a temporary solution until nixpkgs us up-to-date again |
22 | | - uv2nix.inputs.nixpkgs.url = "github:runtimeverification/nixpkgs/libmatch"; |
23 | | - # inputs.nixpkgs.follows = "nixpkgs"; |
| 18 | + uv2nix.url = "github:pyproject-nix/uv2nix/be511633027f67beee87ab499f7b16d0a2f7eceb"; |
| 19 | + # uv2nix requires a newer version of nixpkgs |
| 20 | + # therefore, we pin uv2nix specifically to a newer version of nixpkgs |
| 21 | + # until we replaced our stale version of nixpkgs with an upstream one as well |
| 22 | + # but also uv2nix requires us to call it with `callPackage`, so we add stuff |
| 23 | + # from the newer nixpkgs to our stale nixpkgs via an overlay |
| 24 | + nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; |
| 25 | + uv2nix.inputs.nixpkgs.follows = "nixpkgs-unstable"; |
| 26 | + # uv2nix.inputs.nixpkgs.follows = "nixpkgs"; |
24 | 27 | pyproject-build-systems.url = "github:pyproject-nix/build-system-pkgs/7dba6dbc73120e15b558754c26024f6c93015dd7"; |
25 | 28 | pyproject-build-systems = { |
26 | 29 | inputs.nixpkgs.follows = "uv2nix/nixpkgs"; |
|
40 | 43 | uv2nix, |
41 | 44 | pyproject-build-systems, |
42 | 45 | pyproject-nix, |
| 46 | + nixpkgs-unstable, |
43 | 47 | ... }: |
44 | 48 | let |
45 | 49 | pythonVer = "310"; |
46 | 50 | nixLibs = pkgs: with pkgs; "-I${openssl.dev}/include -L${openssl.out}/lib -I${secp256k1}/include -L${secp256k1}/lib"; |
47 | 51 | in flake-utils.lib.eachDefaultSystem (system: |
48 | 52 | let |
| 53 | + pkgs-unstable = import nixpkgs-unstable { |
| 54 | + inherit system; |
| 55 | + }; |
| 56 | + # for uv2nix, remove this once we updated to a newer version of nixpkgs |
| 57 | + staleNixpkgsOverlay = final: prev: { |
| 58 | + inherit (pkgs-unstable) replaceVars; |
| 59 | + }; |
49 | 60 | uvOverlay = final: prev: { |
50 | 61 | uv = uv2nix.packages.${final.system}.uv-bin; |
51 | 62 | }; |
|
74 | 85 | pkgs = import nixpkgs { |
75 | 86 | inherit system; |
76 | 87 | overlays = [ |
| 88 | + staleNixpkgsOverlay |
77 | 89 | uvOverlay |
78 | 90 | kOverlay |
79 | 91 | haskellBackendOverlay |
|
0 commit comments