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