git.delta.rocks / jrsonnet / refs/heads / trunk

difftreelog

source

pkgs/fleet.nix807 Bsourcehistory
1{2  lib,3  craneLib,4  installShellFiles,5  inputs',6  pkg-config,7  rustPlatform,8}:9craneLib.buildPackage rec {10  pname = "fleet";11  src = lib.cleanSourceWith {12    src = ../.;13    filter =14      path: type:15      (lib.hasSuffix "\.cc" path)16      || (lib.hasSuffix "\.hh" path)17      || (craneLib.filterCargoSources path type);18  };19  strictDeps = true;2021  cargoExtraArgs = "--locked -p ${pname}";2223  buildInputs = [24    inputs'.nix.packages.nix-expr-c25    inputs'.nix.packages.nix-flake-c26    inputs'.nix.packages.nix-fetchers-c27  ];28  nativeBuildInputs = [29    installShellFiles30    pkg-config31    rustPlatform.bindgenHook32  ];3334  postInstall = ''35    for shell in bash fish zsh; do36      installShellCompletion --cmd fleet \37        --$shell <($out/bin/fleet complete --shell $shell)38    done39  '';40}