filter for git-tracked files

This commit is contained in:
Valentin Gagarin 2025-04-16 16:43:27 +02:00 committed by Kiara Grouwstra
parent eae3ac83c2
commit 585420e589
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU

View file

@ -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; })
];