Skip to content

Commit abf1547

Browse files
ibbempmbittner
authored andcommitted
nix: Filter sources using the new fileset API
This finally filters out all untracked files from the repository.
1 parent ad7bc80 commit abf1547

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

default.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
pkgs.stdenv.mkDerivation rec {
1414
pname = "DiffDetective";
1515
version = "2.0.0";
16-
src = ./.;
16+
src = with pkgs.lib.fileset;
17+
toSource {
18+
root = ./.;
19+
fileset = gitTrackedWith {} ./.;
20+
};
1721

1822
nativeBuildInputs = with pkgs; [
1923
maven

0 commit comments

Comments
 (0)