diff options
author | Robin Gloster <mail@glob.in> | 2020-05-31 15:49:29 +0200 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2020-05-31 15:49:29 +0200 |
commit | f7056dca7433cbb0fd1f662b27d354c727af6473 (patch) | |
tree | d90fa13977dfbf10273d1ae19c4dcef222960047 | |
parent | b64205d164acb49cc85cb069fdbfbe1f1c3eacae (diff) |
docker-compose: fix zsh completion
-rw-r--r-- | pkgs/applications/virtualization/docker-compose/default.nix | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pkgs/applications/virtualization/docker-compose/default.nix b/pkgs/applications/virtualization/docker-compose/default.nix index 14c5ec0a41617..71359467c5c64 100644 --- a/pkgs/applications/virtualization/docker-compose/default.nix +++ b/pkgs/applications/virtualization/docker-compose/default.nix @@ -1,4 +1,5 @@ { stdenv, buildPythonApplication, fetchPypi, pythonOlder +, installShellFiles , mock, pytest, nose , pyyaml, backports_ssl_match_hostname, colorama, docopt , dockerpty, docker, ipaddress, jsonschema, requests @@ -17,6 +18,7 @@ buildPythonApplication rec { # lots of networking and other fails doCheck = false; + nativeBuildInputs = [ installShellFiles ]; checkInputs = [ mock pytest nose ]; propagatedBuildInputs = [ pyyaml backports_ssl_match_hostname colorama dockerpty docker @@ -33,11 +35,8 @@ buildPythonApplication rec { ''; postInstall = '' - install -D -m 0444 contrib/completion/bash/docker-compose \ - $out/share/bash-completion/completions/docker-compose - - install -D -m 0444 contrib/completion/zsh/_docker-compose \ - $out/share/zsh-completion/zsh/site-functions/_docker-compose + installShellCompletion --bash contrib/completion/bash/docker-compose + installShellCompletion --zsh contrib/completion/zsh/_docker-compose ''; meta = with stdenv.lib; { |