Skip to content

Commit 4cc86f9

Browse files
rv-jenkinsrv-auditorjuliankuners
authored
Update dependency: deps/uv2nix (#53)
Co-authored-by: devops <devops@runtimeverification.com> Co-authored-by: Julian Kuners <julian.kuners@gmail.com>
1 parent 125da7a commit 4cc86f9

7 files changed

Lines changed: 460 additions & 345 deletions

File tree

.github/workflows/test-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
if: ${{ matrix.runner != 'MacM1' }}
8888
uses: cachix/install-nix-action@v31.2.0
8989
with:
90-
install_url: https://releases.nixos.org/nix/nix-2.24.12/install
90+
install_url: https://releases.nixos.org/nix/nix-2.31.0/install
9191
extra_nix_config: |
9292
substituters = http://cache.nixos.org https://cache.iog.io
9393
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=

.github/workflows/update-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: 'Install Nix'
2929
uses: cachix/install-nix-action@v31.2.0
3030
with:
31-
install_url: https://releases.nixos.org/nix/nix-2.24.12/install
31+
install_url: https://releases.nixos.org/nix/nix-2.31.0/install
3232
extra_nix_config: |
3333
substituters = http://cache.nixos.org https://cache.iog.io
3434
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=

deps/uv2nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
680e2f8e637bc79b84268949d2f2b2f5e5f1d81c
1+
be511633027f67beee87ab499f7b16d0a2f7eceb

deps/uv_release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.7.2
1+
0.8.22

flake.lock

Lines changed: 27 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@
77
flake-utils.url = "github:numtide/flake-utils";
88
k-framework.url = "github:runtimeverification/k/v7.1.280";
99
k-framework.inputs.nixpkgs.follows = "nixpkgs";
10-
uv2nix.url = "github:pyproject-nix/uv2nix/680e2f8e637bc79b84268949d2f2b2f5e5f1d81c";
11-
# stale nixpkgs is missing the alias `lib.match` -> `builtins.match`
12-
# therefore point uv2nix to a patched nixpkgs, which introduces this alias
13-
# this is a temporary solution until nixpkgs us up-to-date again
14-
uv2nix.inputs.nixpkgs.url = "github:runtimeverification/nixpkgs/libmatch";
10+
uv2nix.url = "github:pyproject-nix/uv2nix/be511633027f67beee87ab499f7b16d0a2f7eceb";
11+
# uv2nix requires a newer version of nixpkgs
12+
# therefore, we pin uv2nix specifically to a newer version of nixpkgs
13+
# until we replaced our stale version of nixpkgs with an upstream one as well
14+
# but also uv2nix requires us to call it with `callPackage`, so we add stuff
15+
# from the newer nixpkgs to our stale nixpkgs via an overlay
16+
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
17+
uv2nix.inputs.nixpkgs.follows = "nixpkgs-unstable";
1518
# uv2nix.inputs.nixpkgs.follows = "nixpkgs";
1619
pyproject-build-systems.url = "github:pyproject-nix/build-system-pkgs/7dba6dbc73120e15b558754c26024f6c93015dd7";
1720
pyproject-build-systems = {
@@ -21,7 +24,7 @@
2124
};
2225
pyproject-nix.follows = "uv2nix/pyproject-nix";
2326
};
24-
outputs = { self, rv-nix-tools, nixpkgs, flake-utils, pyproject-nix, pyproject-build-systems, uv2nix, k-framework }:
27+
outputs = { self, rv-nix-tools, nixpkgs, flake-utils, pyproject-nix, pyproject-build-systems, uv2nix, k-framework, nixpkgs-unstable }:
2528
let
2629
pythonVer = "310";
2730
in flake-utils.lib.eachSystem [
@@ -31,6 +34,13 @@
3134
"aarch64-darwin"
3235
] (system:
3336
let
37+
pkgs-unstable = import nixpkgs-unstable {
38+
inherit system;
39+
};
40+
# for uv2nix, remove this once we updated to a newer version of nixpkgs
41+
staleNixpkgsOverlay = final: prev: {
42+
inherit (pkgs-unstable) replaceVars;
43+
};
3444
# due to the nixpkgs that we use in this flake being outdated, uv is also heavily outdated
3545
# we can instead use the binary release of uv provided by uv2nix for now
3646
uvOverlay = final: prev: {
@@ -56,6 +66,7 @@
5666
pkgs = import nixpkgs {
5767
inherit system;
5868
overlays = [
69+
staleNixpkgsOverlay
5970
uvOverlay
6071
kOverlay
6172
kimpOverlay

0 commit comments

Comments
 (0)