From 6577d1731cb11686a6240921388ba2d15892f900 Mon Sep 17 00:00:00 2001 From: Karolin Varner Date: Wed, 13 Aug 2025 16:14:44 +0200 Subject: [PATCH] fix: In integration test in main flake: Move rosenpassOld into flake imports --- flake.lock | 122 +++++++++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 9 ++-- 2 files changed, 128 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index af53c6c..72e0fe3 100644 --- a/flake.lock +++ b/flake.lock @@ -38,6 +38,24 @@ "type": "github" } }, + "flake-utils_2": { + "inputs": { + "systems": "systems_2" + }, + "locked": { + "lastModified": 1726560853, + "narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "nix-vm-test": { "inputs": { "nixpkgs": [ @@ -58,6 +76,27 @@ "type": "github" } }, + "nix-vm-test_2": { + "inputs": { + "nixpkgs": [ + "rosenpassOld", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1734355073, + "narHash": "sha256-FfdPOGy1zElTwKzjgIMp5K2D3gfPn6VWjVa4MJ9L1Tc=", + "owner": "numtide", + "repo": "nix-vm-test", + "rev": "5948de39a616f2261dbbf4b6f25cbe1cbefd788c", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "nix-vm-test", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1728193676, @@ -80,11 +119,58 @@ "flake-utils": "flake-utils", "nix-vm-test": "nix-vm-test", "nixpkgs": "nixpkgs", + "rosenpassOld": "rosenpassOld", + "rust-overlay": "rust-overlay_2", + "treefmt-nix": "treefmt-nix_2" + } + }, + "rosenpassOld": { + "inputs": { + "flake-utils": "flake-utils_2", + "nix-vm-test": "nix-vm-test_2", + "nixpkgs": [ + "nixpkgs" + ], "rust-overlay": "rust-overlay", "treefmt-nix": "treefmt-nix" + }, + "locked": { + "lastModified": 1754748821, + "narHash": "sha256-mMggTZDC97lLvKNOLtDz3GBjjxXFD++e1s0RZsVH/vI=", + "owner": "rosenpass", + "repo": "rosenpass", + "rev": "916a9ebb7133f0b22057fb097a473217f261928a", + "type": "github" + }, + "original": { + "owner": "rosenpass", + "repo": "rosenpass", + "rev": "916a9ebb7133f0b22057fb097a473217f261928a", + "type": "github" } }, "rust-overlay": { + "inputs": { + "nixpkgs": [ + "rosenpassOld", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1744513456, + "narHash": "sha256-NLVluTmK8d01Iz+WyarQhwFcXpHEwU7m5hH3YQQFJS0=", + "owner": "oxalica", + "repo": "rust-overlay", + "rev": "730fd8e82799219754418483fabe1844262fd1e2", + "type": "github" + }, + "original": { + "owner": "oxalica", + "repo": "rust-overlay", + "type": "github" + } + }, + "rust-overlay_2": { "inputs": { "nixpkgs": [ "nixpkgs" @@ -119,7 +205,43 @@ "type": "github" } }, + "systems_2": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "treefmt-nix": { + "inputs": { + "nixpkgs": [ + "rosenpassOld", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1743748085, + "narHash": "sha256-uhjnlaVTWo5iD3LXics1rp9gaKgDRQj6660+gbUU3cE=", + "owner": "numtide", + "repo": "treefmt-nix", + "rev": "815e4121d6a5d504c0f96e5be2dd7f871e4fd99d", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "treefmt-nix", + "type": "github" + } + }, + "treefmt-nix_2": { "inputs": { "nixpkgs": [ "nixpkgs" diff --git a/flake.nix b/flake.nix index ff3162f..475cdff 100644 --- a/flake.nix +++ b/flake.nix @@ -16,6 +16,10 @@ treefmt-nix.url = "github:numtide/treefmt-nix"; treefmt-nix.inputs.nixpkgs.follows = "nixpkgs"; + + # Older version of rosenpass, referenced here for backwards compatibility + rosenpassOld.url = "github:rosenpass/rosenpass?rev=916a9ebb7133f0b22057fb097a473217f261928a"; + rosenpassOld.inputs.nixpkgs.follows = "nixpkgs"; }; outputs = @@ -27,6 +31,7 @@ rust-overlay, treefmt-nix, flake-parts, + rosenpassOld, ... }@inputs: nixpkgs.lib.foldl (a: b: nixpkgs.lib.recursiveUpdate a b) { } [ @@ -192,9 +197,7 @@ pkgs = inputs.nixpkgs; lib = nixpkgs.lib; rosenpassNew = self.packages.${system}.default; - rosenpassOld = - (builtins.getFlake "github:rosenpass/rosenpass?rev=916a9ebb7133f0b22057fb097a473217f261928a") - .packages.${system}.default; + rosenpassOld = rosenpassOld.packages.${system}.default; } // { systemd-rosenpass = pkgs.testers.runNixOSTest ./tests/systemd/rosenpass.nix;