Skip to content

Commit a6033f1

Browse files
committed
use fileset instead of nix-gitignore
flakes already handle git-ignore but with fileset we can actually ignore files that are not source
1 parent f51ebc8 commit a6033f1

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

package.nix

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2+
lib,
23
stdenv,
34
pkgs,
45
rustPlatform,
5-
nix-gitignore,
66
enableClippy ? false,
77
}:
88

@@ -24,7 +24,17 @@ let
2424

2525
cargoLock.lockFile = ./Cargo.lock;
2626

27-
src = nix-gitignore.gitignoreSource [ ] ./.;
27+
src = lib.fileset.toSource {
28+
root = ./.;
29+
fileset = lib.fileset.unions [
30+
./src
31+
./Cargo.toml
32+
./Cargo.lock
33+
./build.rs
34+
./vendor
35+
./tests
36+
];
37+
};
2838

2939
hardeningDisable = [ "stackprotector" ];
3040

0 commit comments

Comments
 (0)