replace nix-filter with crane source filtering

This commit is contained in:
müde 2026-07-31 23:02:48 +02:00
commit 8a8522c93d
2 changed files with 1 additions and 28 deletions

16
flake.lock generated
View file

@ -15,21 +15,6 @@
"type": "github"
}
},
"nix-filter": {
"locked": {
"lastModified": 1757882181,
"narHash": "sha256-+cCxYIh2UNalTz364p+QYmWHs0P+6wDhiWR4jDIKQIU=",
"owner": "numtide",
"repo": "nix-filter",
"rev": "59c44d1909c72441144b93cf0f054be7fe764de5",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "nix-filter",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1779622335,
@ -49,7 +34,6 @@
"root": {
"inputs": {
"crane": "crane",
"nix-filter": "nix-filter",
"nixpkgs": "nixpkgs",
"treefmt-nix": "treefmt-nix"
}

View file

@ -3,7 +3,6 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
nix-filter.url = "github:numtide/nix-filter";
crane.url = "github:ipetkov/crane";
treefmt-nix = {
url = "github:numtide/treefmt-nix";
@ -16,7 +15,6 @@
self,
nixpkgs,
crane,
nix-filter,
treefmt-nix,
}:
let
@ -52,16 +50,7 @@
let
craneLib = crane.mkLib pkgs;
commonArgs = {
src = nix-filter.lib.filter {
root = ./.;
include = [
./Cargo.toml
./Cargo.lock
./src
./README.md
./LICENSE
];
};
src = craneLib.cleanCargoSource ./.;
strictDeps = true;
nativeBuildInputs = with pkgs; [
pkg-config