From 7d295d4a2c43a24dae97bf405f22d687db3362b1 Mon Sep 17 00:00:00 2001 From: Valentin Gagarin Date: Wed, 16 Apr 2025 16:43:27 +0200 Subject: [PATCH] filter for git-tracked files --- launch/tf-env.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/launch/tf-env.nix b/launch/tf-env.nix index 9ef8518a..fca0731d 100644 --- a/launch/tf-env.nix +++ b/launch/tf-env.nix @@ -6,7 +6,12 @@ }: pkgs.stdenv.mkDerivation { name = "tf-repo"; - src = ../.; + src = + with lib.fileset; + toSource { + root = ../.; + fileset = intersection (gitTracked ../.) ../.; + }; buildInputs = [ (import ./tf.nix { inherit lib pkgs; }) ];