summaryrefslogtreecommitdiff
path: root/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
parentedbe9b7d259b95b48eae8b4f4853b1e5ad6ab537 (diff)
refactor(nix): nix-filter -> lib.fileset
Diffstat (limited to 'nix')
-rw-r--r--nix/package.nix14
-rw-r--r--nix/static.nix4
2 files changed, 9 insertions, 9 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
];
};
diff --git a/nix/static.nix b/nix/static.nix
index 5c7f528..73c3595 100644
--- a/nix/static.nix
+++ b/nix/static.nix
@@ -1,6 +1,5 @@
{
pkgsCross,
- nix-filter,
self,
}:
@@ -15,8 +14,9 @@ in
let
crossPkgs = crossPkgsFor.${arch};
in
+
(crossPkgs.callPackage ./package.nix {
- inherit nix-filter self;
+ inherit self;
optimizeSize = true;
}).overrideAttrs
(old: {