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" "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": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1779622335, "lastModified": 1779622335,
@ -49,7 +34,6 @@
"root": { "root": {
"inputs": { "inputs": {
"crane": "crane", "crane": "crane",
"nix-filter": "nix-filter",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
} }

View file

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