From 3d01d4315e8f43be9d7d57444322026cdaacd01e Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 27 Mar 2024 16:27:45 +0100 Subject: [PATCH] fix(flake): follow the inputs of `nixsgx` preventing any cache mismatches Signed-off-by: Harald Hoyer --- flake.lock | 116 +++++++---------------------------------------------- flake.nix | 14 ++----- 2 files changed, 18 insertions(+), 112 deletions(-) diff --git a/flake.lock b/flake.lock index 1d5cfcc..715daa6 100644 --- a/flake.lock +++ b/flake.lock @@ -16,22 +16,6 @@ "type": "github" } }, - "flake-compat_2": { - "flake": false, - "locked": { - "lastModified": 1650374568, - "narHash": "sha256-Z+s0J8/r907g149rllvwhb4pKi8Wam5ij0st8PwAh+E=", - "owner": "edolstra", - "repo": "flake-compat", - "rev": "b4a34015c698c7793d592d66adbab377907a2be8", - "type": "github" - }, - "original": { - "owner": "edolstra", - "repo": "flake-compat", - "type": "github" - } - }, "flake-utils": { "inputs": { "systems": "systems" @@ -68,49 +52,13 @@ "type": "github" } }, - "flake-utils-plus_2": { - "inputs": { - "flake-utils": "flake-utils_2" - }, - "locked": { - "lastModified": 1696331477, - "narHash": "sha256-YkbRa/1wQWdWkVJ01JvV+75KIdM37UErqKgTf0L54Fk=", - "owner": "gytis-ivaskevicius", - "repo": "flake-utils-plus", - "rev": "bfc53579db89de750b25b0c5e7af299e0c06d7d3", - "type": "github" - }, - "original": { - "owner": "gytis-ivaskevicius", - "repo": "flake-utils-plus", - "type": "github" - } - }, - "flake-utils_2": { - "inputs": { - "systems": "systems_2" - }, - "locked": { - "lastModified": 1694529238, - "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "ff7b65b44d01cf9ba6a71320833626af21126384", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, "nixpkgs": { "locked": { - "lastModified": 1707650010, - "narHash": "sha256-dOhphIA4MGrH4ElNCy/OlwmN24MsnEqFjRR6+RY7jZw=", + "lastModified": 1710283656, + "narHash": "sha256-nI+AOy4uK6jLGBi9nsbHjL1EdSIzoo8oa+9oeVhbyFc=", "owner": "nixos", "repo": "nixpkgs", - "rev": "809cca784b9f72a5ad4b991e0e7bcf8890f9c3a6", + "rev": "51063ed4f2343a59fdeebb279bb81d87d453942b", "type": "github" }, "original": { @@ -122,17 +70,15 @@ }, "nixsgx-flake": { "inputs": { - "nixpkgs": [ - "nixpkgs" - ], + "nixpkgs": "nixpkgs", "snowfall-lib": "snowfall-lib" }, "locked": { - "lastModified": 1707314146, - "narHash": "sha256-NcqWVXkGBautT44YcQgZdVK1Vwqop1V8nDoPEzKr0uE=", + "lastModified": 1711549197, + "narHash": "sha256-Oup/VoprW91b5y/3pY63C/gYAVHiQbqBCDR4EDA9f5c=", "owner": "matter-labs", "repo": "nixsgx", - "rev": "e3bbd5415eb845c8857dd0963febcef71866cd4a", + "rev": "628eb257bff690a3bfc896693838322212302eb7", "type": "github" }, "original": { @@ -143,9 +89,15 @@ }, "root": { "inputs": { - "nixpkgs": "nixpkgs", + "nixpkgs": [ + "nixsgx-flake", + "nixpkgs" + ], "nixsgx-flake": "nixsgx-flake", - "snowfall-lib": "snowfall-lib_2" + "snowfall-lib": [ + "nixsgx-flake", + "snowfall-lib" + ] } }, "snowfall-lib": { @@ -171,29 +123,6 @@ "type": "github" } }, - "snowfall-lib_2": { - "inputs": { - "flake-compat": "flake-compat_2", - "flake-utils-plus": "flake-utils-plus_2", - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1696432959, - "narHash": "sha256-oJQZv2MYyJaVyVJY5IeevzqpGvMGKu5pZcCCJvb+xjc=", - "owner": "snowfallorg", - "repo": "lib", - "rev": "92803a029b5314d4436a8d9311d8707b71d9f0b6", - "type": "github" - }, - "original": { - "owner": "snowfallorg", - "repo": "lib", - "rev": "92803a029b5314d4436a8d9311d8707b71d9f0b6", - "type": "github" - } - }, "systems": { "locked": { "lastModified": 1681028828, @@ -208,21 +137,6 @@ "repo": "default", "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" - } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 18d0117..2ce6bff 100644 --- a/flake.nix +++ b/flake.nix @@ -2,17 +2,9 @@ description = "vault auth plugin for remote attestation of TEEs"; inputs = { - nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11"; - - nixsgx-flake = { - url = "github:matter-labs/nixsgx"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - - snowfall-lib = { - url = "github:snowfallorg/lib?rev=92803a029b5314d4436a8d9311d8707b71d9f0b6"; - inputs.nixpkgs.follows = "nixpkgs"; - }; + nixsgx-flake.url = "github:matter-labs/nixsgx"; + nixpkgs.follows = "nixsgx-flake/nixpkgs"; + snowfall-lib.follows = "nixsgx-flake/snowfall-lib"; }; outputs = inputs: