cockroachdb: use installShellFiles
This commit is contained in:
parent
2dca3f2aa7
commit
94e4ec143f
@ -1,6 +1,7 @@
|
||||
{ stdenv, buildGoPackage, fetchurl
|
||||
, cmake, xz, which, autoconf
|
||||
, ncurses6, libedit, libunwind
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
let
|
||||
@ -8,7 +9,7 @@ let
|
||||
linuxDeps = [ ncurses6 ];
|
||||
|
||||
buildInputs = if stdenv.isDarwin then darwinDeps else linuxDeps;
|
||||
nativeBuildInputs = [ cmake xz which autoconf ];
|
||||
nativeBuildInputs = [ installShellFiles cmake xz which autoconf ];
|
||||
|
||||
in
|
||||
buildGoPackage rec {
|
||||
@ -42,7 +43,7 @@ buildGoPackage rec {
|
||||
runHook preInstall
|
||||
|
||||
install -D cockroachoss $bin/bin/cockroach
|
||||
install -D cockroach.bash $bin/share/bash-completion/completions/cockroach.bash
|
||||
installShellCompletion cockroach.bash
|
||||
|
||||
mkdir -p $man/share/man
|
||||
cp -r man $man/share/man
|
||||
|
Loading…
Reference in New Issue
Block a user