1{2 lib,3 craneLib,4 inputs,56 stdenv,7 pkg-config,8 rustPlatform,9}:10let11 system = stdenv.hostPlatform.system;12in13craneLib.buildPackage rec {14 pname = "remowt-plugin-fleet";15 src = lib.cleanSourceWith {16 src = ../.;17 filter =18 path: type:19 (lib.hasSuffix "\.cc" path)20 || (lib.hasSuffix "\.hh" path)21 || (craneLib.filterCargoSources path type);22 };23 strictDeps = true;2425 cargoExtraArgs = "--locked -p ${pname}";2627 buildInputs = [28 inputs.nix.packages.${system}.nix-expr-c29 inputs.nix.packages.${system}.nix-flake-c30 inputs.nix.packages.${system}.nix-fetchers-c31 ];32 nativeBuildInputs = [33 pkg-config34 rustPlatform.bindgenHook35 ];36}