1{2 lib,3 craneLib,4 installShellFiles,5 inputs,67 stdenv,8 pkg-config,9 rustPlatform,10 rofi,11}:12let13 system = stdenv.hostPlatform.system;14in15craneLib.buildPackage rec {16 pname = "fleet";17 src = lib.cleanSourceWith {18 src = ../.;19 filter =20 path: type:21 (lib.hasSuffix "\.cc" path)22 || (lib.hasSuffix "\.hh" path)23 || (craneLib.filterCargoSources path type);24 };25 strictDeps = true;2627 cargoExtraArgs = "--locked -p ${pname}";2829 REMOWT_AGENTS_DIR = "${inputs.remowt-agents.packages.${system}.remowt-agents}";30 31 32 ROFI = "${rofi}/bin/rofi";3334 buildInputs = [35 inputs.nix.packages.${system}.nix-expr-c36 inputs.nix.packages.${system}.nix-flake-c37 inputs.nix.packages.${system}.nix-fetchers-c38 ];39 nativeBuildInputs = [40 installShellFiles41 pkg-config42 rustPlatform.bindgenHook43 ];4445 postInstall = ''46 for shell in bash fish zsh; do47 installShellCompletion --cmd fleet \48 --$shell <($out/bin/fleet complete --shell $shell)49 done50 '';51}