From 989ed7e2ee9b6ce43e35041d5e07722e2437859e Mon Sep 17 00:00:00 2001 From: matthewcroughan Date: Sat, 6 May 2023 01:30:50 +0100 Subject: [PATCH 1/2] flake: use allowBuiltInFetchGit to prevent narHash reproducibility issues using the builtin fetcher allows fetching git dependencies with only the ref and without storing the narHash for the fixed-output-derivation --- flake.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 2c07b0c..43438b5 100644 --- a/flake.nix +++ b/flake.nix @@ -34,9 +34,7 @@ cargoLock = { lockFile = ./Cargo.lock; - outputHashes = { - "smithay-0.3.0" = "sha256-meEbYmSGQbaSbP5t55R1C/c9KNKvk20wDhPBCsT7kOY="; - }; + allowBuiltinFetchGit = true; }; postPatch = '' -- 2.49.1 From b8cf81d4c1c5c52500bc10fa337cce4620c50114 Mon Sep 17 00:00:00 2001 From: matthewcroughan Date: Sat, 6 May 2023 01:32:31 +0100 Subject: [PATCH 2/2] gitignore: add nix result symlinks --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 0db2e6c..5d4e9a8 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,6 @@ **/*.rs.bk .vscode/ + +# Ignore build results from Nix +*result* -- 2.49.1