Skip to content

Commit c4953b4

Browse files
rv-jenkinsrv-auditorjuliankuners
authored
Update dependency: deps/uv2nix (#163)
Co-authored-by: devops <devops@runtimeverification.com> Co-authored-by: Julian Kuners <julian.kuners@gmail.com>
1 parent 389efd9 commit c4953b4

6 files changed

Lines changed: 176 additions & 10 deletions

File tree

deps/uv2nix

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

flake.lock

Lines changed: 155 additions & 0 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
@@ -4,11 +4,14 @@
44
nixpkgs.url = "nixpkgs/nixos-25.05";
55
flake-utils.url = "github:numtide/flake-utils";
66
uv2nix.url = "github:pyproject-nix/uv2nix/680e2f8e637bc79b84268949d2f2b2f5e5f1d81c";
7-
# stale nixpkgs is missing the alias `lib.match` -> `builtins.match`
8-
# therefore point uv2nix to a patched nixpkgs, which introduces this alias
9-
# this is a temporary solution until nixpkgs us up-to-date again
10-
uv2nix.inputs.nixpkgs.url = "github:runtimeverification/nixpkgs/libmatch";
11-
# inputs.nixpkgs.follows = "nixpkgs";
7+
# uv2nix requires a newer version of nixpkgs
8+
# therefore, we pin uv2nix specifically to a newer version of nixpkgs
9+
# until we replaced our stale version of nixpkgs with an upstream one as well
10+
# but also uv2nix requires us to call it with `callPackage`, so we add stuff
11+
# from the newer nixpkgs to our stale nixpkgs via an overlay
12+
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
13+
uv2nix.inputs.nixpkgs.follows = "nixpkgs-unstable";
14+
# uv2nix.inputs.nixpkgs.follows = "nixpkgs";
1215
pyproject-build-systems.url = "github:pyproject-nix/build-system-pkgs/7dba6dbc73120e15b558754c26024f6c93015dd7";
1316
pyproject-build-systems = {
1417
inputs.nixpkgs.follows = "uv2nix/nixpkgs";
@@ -17,7 +20,7 @@
1720
};
1821
pyproject-nix.follows = "uv2nix/pyproject-nix";
1922
};
20-
outputs = { self, nixpkgs, flake-utils, pyproject-nix, pyproject-build-systems, uv2nix }:
23+
outputs = { self, nixpkgs, flake-utils, pyproject-nix, pyproject-build-systems, uv2nix, nixpkgs-unstable }:
2124
let
2225
pythonVer = "310";
2326
in flake-utils.lib.eachSystem [
@@ -27,6 +30,13 @@
2730
"aarch64-darwin"
2831
] (system:
2932
let
33+
pkgs-unstable = import nixpkgs-unstable {
34+
inherit system;
35+
};
36+
# for uv2nix, remove this once we updated to a newer version of nixpkgs
37+
staleNixpkgsOverlay = final: prev: {
38+
inherit (pkgs-unstable) replaceVars;
39+
};
3040
# due to the nixpkgs that we use in this flake being outdated, uv is also heavily outdated
3141
# we can instead use the binary release of uv provided by uv2nix for now
3242
uvOverlay = final: prev: {
@@ -41,6 +51,7 @@
4151
pkgs = import nixpkgs {
4252
inherit system;
4353
overlays = [
54+
staleNixpkgsOverlay
4455
uvOverlay
4556
kriscvOverlay
4657
];

package/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.119
1+
0.1.120

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "kriscv"
7-
version = "0.1.119"
7+
version = "0.1.120"
88
description = "K tooling for the RISC-V architecture"
99
readme = "README.md"
1010
requires-python = "~=3.10"

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)