From 9123153bf36954080eea74d48b137f8e4d1fe9d6 Mon Sep 17 00:00:00 2001 From: Matthew Croughan Date: Sat, 6 May 2023 18:37:46 +0100 Subject: [PATCH] fix: nix flake smithay lock issues * 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 * gitignore: add nix result symlinks --- .gitignore | 3 +++ flake.nix | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) 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* 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 = ''