summaryrefslogtreecommitdiff
path: root/nix/package.nix
diff options
context:
space:
mode:
authorSeth Flynn <[email protected]>2025-03-30 21:38:57 -0400
committerSeth Flynn <[email protected]>2025-03-30 22:08:05 -0400
commitb75b85d4a7130ee051004c187c0a5af00f449e6e (patch)
treed7904529faa108f7b68b7fb05097cdebb3bff635 /nix/package.nix
parentedbe9b7d259b95b48eae8b4f4853b1e5ad6ab537 (diff)
refactor(nix): nix-filter -> lib.fileset
Diffstat (limited to 'nix/package.nix')
-rw-r--r--nix/package.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/nix/package.nix b/nix/package.nix
index d0d1a83..1c9cc4e 100644
--- a/nix/package.nix
+++ b/nix/package.nix
@@ -7,7 +7,6 @@
rustPlatform,
self,
- nix-filter,
lto ? true,
optimizeSize ? false,
}:
@@ -16,12 +15,13 @@ rustPlatform.buildRustPackage {
pname = "nixpkgs-tracker-bot";
version = self.shortRev or self.dirtyShortRev or "unknown";
- src = nix-filter.lib.filter {
- root = self;
- include = [
- "crates"
- "Cargo.toml"
- "Cargo.lock"
+ src = lib.fileset.toSource {
+ root = ../.;
+ fileset = lib.fileset.unions [
+ ../Cargo.lock
+ ../Cargo.toml
+
+ ../crates
];
};