diff options
author | zowoq <59103226+zowoq@users.noreply.github.com> | 2020-04-26 13:16:50 +1000 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2020-04-26 13:36:15 +1000 |
commit | 7a40eb5763a13f68af5d7f74cae166d6c2d73c4d (patch) | |
tree | 3c7f1c0a0aa1322c861aebdbfa67c813fd6dee71 /pkgs/applications/networking | |
parent | c1facd193e8031a7a86ae1bf93318f99df65b392 (diff) | |
download | nixpkgs-7a40eb5763a13f68af5d7f74cae166d6c2d73c4d.tar nixpkgs-7a40eb5763a13f68af5d7f74cae166d6c2d73c4d.tar.gz nixpkgs-7a40eb5763a13f68af5d7f74cae166d6c2d73c4d.tar.bz2 nixpkgs-7a40eb5763a13f68af5d7f74cae166d6c2d73c4d.tar.lz nixpkgs-7a40eb5763a13f68af5d7f74cae166d6c2d73c4d.tar.xz nixpkgs-7a40eb5763a13f68af5d7f74cae166d6c2d73c4d.tar.zst nixpkgs-7a40eb5763a13f68af5d7f74cae166d6c2d73c4d.zip |
docker-machine: use installShellFiles
Diffstat (limited to 'pkgs/applications/networking')
-rw-r--r-- | pkgs/applications/networking/cluster/docker-machine/default.nix | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/applications/networking/cluster/docker-machine/default.nix b/pkgs/applications/networking/cluster/docker-machine/default.nix index 32108426032..a801a122374 100644 --- a/pkgs/applications/networking/cluster/docker-machine/default.nix +++ b/pkgs/applications/networking/cluster/docker-machine/default.nix @@ -1,5 +1,5 @@ # This file was generated by go2nix. -{ stdenv, buildGoPackage, fetchFromGitHub }: +{ stdenv, buildGoPackage, fetchFromGitHub, installShellFiles }: buildGoPackage rec { pname = "machine"; @@ -14,13 +14,13 @@ buildGoPackage rec { sha256 = "0xxzxi5v7ji9j2k7kxhi0ah91lfa7b9rg3nywgx0lkv8dlgp8kmy"; }; - postInstall = '' - mkdir -p \ - $bin/share/bash-completion/completions/ \ - $bin/share/zsh/site-functions/ + nativeBuildInputs = [ installShellFiles ]; - cp go/src/github.com/docker/machine/contrib/completion/bash/* $bin/share/bash-completion/completions/ - cp go/src/github.com/docker/machine/contrib/completion/zsh/* $bin/share/zsh/site-functions/ + postInstall = '' + pushd go/src/${goPackagePath}/contrib/completion + installShellCompletion --bash bash/* + installShellCompletion --zsh zsh/* + popd ''; meta = with stdenv.lib; { |