14 pname = "incus${lib.optionalString lts "-lts"}-client";
28 nativeBuildInputs = [ installShellFiles ];
30 subPackages = [ "cmd/incus" ];
33 # Needed for builds on systems with auto-allocate-uids to pass.
34 # Incus tries to read ~/.config/incus while generating completions
35 # to resolve user aliases.
36 export HOME="$(mktemp -d)"
37 mkdir -p "$HOME/.config/incus"
39 installShellCompletion --cmd incus \
40 --bash <($out/bin/incus completion bash) \
41 --fish <($out/bin/incus completion fish) \
42 --zsh <($out/bin/incus completion zsh)
45 # don't run the full incus test suite
49 platforms = lib.platforms.linux ++ lib.platforms.darwin;