docker-machine: use installShellFiles
This commit is contained in:
parent
c1facd193e
commit
7a40eb5763
@ -1,5 +1,5 @@
|
|||||||
# This file was generated by go2nix.
|
# This file was generated by go2nix.
|
||||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
{ stdenv, buildGoPackage, fetchFromGitHub, installShellFiles }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "machine";
|
pname = "machine";
|
||||||
@ -14,13 +14,13 @@ buildGoPackage rec {
|
|||||||
sha256 = "0xxzxi5v7ji9j2k7kxhi0ah91lfa7b9rg3nywgx0lkv8dlgp8kmy";
|
sha256 = "0xxzxi5v7ji9j2k7kxhi0ah91lfa7b9rg3nywgx0lkv8dlgp8kmy";
|
||||||
};
|
};
|
||||||
|
|
||||||
postInstall = ''
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
mkdir -p \
|
|
||||||
$bin/share/bash-completion/completions/ \
|
|
||||||
$bin/share/zsh/site-functions/
|
|
||||||
|
|
||||||
cp go/src/github.com/docker/machine/contrib/completion/bash/* $bin/share/bash-completion/completions/
|
postInstall = ''
|
||||||
cp go/src/github.com/docker/machine/contrib/completion/zsh/* $bin/share/zsh/site-functions/
|
pushd go/src/${goPackagePath}/contrib/completion
|
||||||
|
installShellCompletion --bash bash/*
|
||||||
|
installShellCompletion --zsh zsh/*
|
||||||
|
popd
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user