mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
containerd: move completion to installPhase
docker uses containerd 1.4 since b451286b1f
This commit is contained in:
parent
744de41d10
commit
0bff5a7843
1 changed files with 2 additions and 7 deletions
|
@ -40,13 +40,8 @@ buildGoPackage rec {
|
|||
installPhase = ''
|
||||
install -Dm555 bin/* -t $out/bin
|
||||
installManPage man/*.[1-9]
|
||||
'';
|
||||
|
||||
# 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
|
||||
installShellCompletion --bash contrib/autocomplete/ctr
|
||||
installShellCompletion --zsh --name _ctr contrib/autocomplete/zsh_autocomplete
|
||||
'';
|
||||
|
||||
passthru.tests = { inherit (nixosTests) docker; };
|
||||
|
|
Loading…
Reference in a new issue