git.delta.rocks / fleet / refs/commits / b66112ef1437

difftreelog

source

pkgs/fleet.nix1.1 KiBsourcehistory
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  # TODO: built-in fleet prompter should be a prodash widget, or it should require32  # tty remowt prompter running on host machine idk.33  ROFI = "${rofi}/bin/rofi";3435  buildInputs = [36    inputs.nix.packages.${system}.nix-expr-c37    inputs.nix.packages.${system}.nix-flake-c38    inputs.nix.packages.${system}.nix-fetchers-c39  ];40  nativeBuildInputs = [41    installShellFiles42    pkg-config43    rustPlatform.bindgenHook44  ];4546  postInstall = ''47    for shell in bash fish zsh; do48      installShellCompletion --cmd fleet \49        --$shell <($out/bin/fleet complete --shell $shell)50    done51  '';52}