containerd: move completion to installPhase

docker uses containerd 1.4 since b451286b1f56a65ad37fb606b7a77e73b10911e5
This commit is contained in:
zowoq 2021-02-17 17:56:49 +10:00
parent 744de41d10
commit 0bff5a7843

View File

@ -40,13 +40,8 @@ buildGoPackage rec {
installPhase = '' installPhase = ''
install -Dm555 bin/* -t $out/bin install -Dm555 bin/* -t $out/bin
installManPage man/*.[1-9] installManPage man/*.[1-9]
''; installShellCompletion --bash contrib/autocomplete/ctr
installShellCompletion --zsh --name _ctr contrib/autocomplete/zsh_autocomplete
# completion installed separately so it can be overridden in docker
# can be moved to installPhase when docker uses containerd >= 1.4
postInstall = ''
installShellFiles --bash contrib/autocomplete/ctr
installShellFiles --zsh --name _ctr contrib/autocomplete/zsh_autocomplete
''; '';
passthru.tests = { inherit (nixosTests) docker; }; passthru.tests = { inherit (nixosTests) docker; };