depot/third_party/nixpkgs/pkgs/by-name/in/incus/client.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

42 lines
653 B
Nix

{
lts ? false,
meta,
patches,
src,
vendorHash,
version,
lib,
buildGoModule,
installShellFiles,
}:
let
pname = "incus${lib.optionalString lts "-lts"}-client";
in
buildGoModule {
inherit
meta
patches
pname
src
vendorHash
version
;
CGO_ENABLED = 0;
nativeBuildInputs = [ installShellFiles ];
subPackages = [ "cmd/incus" ];
postInstall = ''
installShellCompletion --cmd incus \
--bash <($out/bin/incus completion bash) \
--fish <($out/bin/incus completion fish) \
--zsh <($out/bin/incus completion zsh)
'';
# don't run the full incus test suite
doCheck = false;
}