1{2 lib,3 craneLib,4 installShellFiles,5 inputs,6 remowt-agents-bundle,78 stdenv,9 pkg-config,10 rustPlatform,11 rofi,12}:13let14 system = stdenv.hostPlatform.system;15in16craneLib.buildPackage rec {17 pname = "fleet";18 src = lib.cleanSourceWith {19 src = ../.;20 filter =21 path: type:22 (lib.hasSuffix "\.cc" path)23 || (lib.hasSuffix "\.hh" path)24 || (craneLib.filterCargoSources path type);25 };26 strictDeps = true;2728 cargoExtraArgs = "--locked -p ${pname}";2930 REMOWT_AGENTS_DIR = "${remowt-agents-bundle}";31 32 33 ROFI = "${rofi}/bin/rofi";34 RUSTFLAGS = "--cfg tokio_unstable";3536 buildInputs = [37 inputs.nix.packages.${system}.nix-expr-c38 inputs.nix.packages.${system}.nix-flake-c39 inputs.nix.packages.${system}.nix-fetchers-c40 ];41 nativeBuildInputs = [42 installShellFiles43 pkg-config44 rustPlatform.bindgenHook45 ];4647 postInstall = ''48 for shell in bash fish zsh; do49 installShellCompletion --cmd fleet \50 --$shell <($out/bin/fleet complete --shell $shell)51 done52 '';53}