replace nix-filter with crane source filtering
This commit is contained in:
parent
0457966ae9
commit
8a8522c93d
2 changed files with 1 additions and 28 deletions
13
flake.nix
13
flake.nix
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue