From f7c8b7f8d19b082f849653280ee343383e064a08 Mon Sep 17 00:00:00 2001 From: Yegor Timoshenko Date: Mon, 19 Aug 2019 16:16:12 +0000 Subject: [PATCH] gitignoreSource: ensure Nix store path determinism This ensures that, when used in situations like `gitignoreSource ./.`, both Hydra and local checkout will have the exact same Nix path. --- default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 548b7f3..f52045d 100644 --- a/default.nix +++ b/default.nix @@ -4,5 +4,10 @@ let in { inherit (find-files) gitignoreFilter; - gitignoreSource = p: lib.cleanSourceWith { filter = find-files.gitignoreFilter p; src = p; }; + + gitignoreSource = path: builtins.path { + name = "source"; + filter = find-files.gitignoreFilter path; + inherit path; + }; }