tree-wide: unify Bash completions outputs (#103421)
Use $out/share/bash-completion/completions to store the Bash completions
This commit is contained in:
@@ -24,7 +24,7 @@ buildGoModule rec {
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
install -D -m 0644 misc/bash_completion/git-bug "$out/etc/bash_completion.d/git-bug"
|
||||
install -D -m 0644 misc/bash_completion/git-bug "$out/share/bash-completion/completions/git-bug"
|
||||
install -D -m 0644 misc/zsh_completion/git-bug "$out/share/zsh/site-functions/git-bug"
|
||||
install -D -m 0644 -t "$out/share/man/man1" doc/man/*
|
||||
'';
|
||||
|
||||
@@ -12,9 +12,9 @@ stdenv.mkDerivation {
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/etc/bash_completion.d
|
||||
mkdir -p $out/bin $out/share/bash-completion/completions
|
||||
install -m 0755 git-stree $out/bin/
|
||||
install -m 0644 git-stree-completion.bash $out/etc/bash_completion.d/
|
||||
install -m 0644 git-stree-completion.bash $out/share/bash-completion/completions/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -153,8 +153,8 @@ stdenv.mkDerivation {
|
||||
cp -a contrib $out/share/git/
|
||||
mkdir -p $out/share/bash-completion/completions
|
||||
ln -s $out/share/git/contrib/completion/git-completion.bash $out/share/bash-completion/completions/git
|
||||
mkdir -p $out/etc/bash_completion.d
|
||||
ln -s $out/share/git/contrib/completion/git-prompt.sh $out/etc/bash_completion.d/
|
||||
mkdir -p $out/share/bash-completion/completions
|
||||
ln -s $out/share/git/contrib/completion/git-prompt.sh $out/share/bash-completion/completions/
|
||||
|
||||
# grep is a runtime dependency, need to patch so that it's found
|
||||
substituteInPlace $out/libexec/git-core/git-sh-setup \
|
||||
|
||||
@@ -16,8 +16,8 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [ perl git ];
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 README -t"$out/share/doc/${pname}-${version}/"
|
||||
install -Dm755 contrib/tg-completion.bash -t "$out/etc/bash_completion.d/"
|
||||
install -Dm644 README -t "$out/share/doc/${pname}-${version}/"
|
||||
install -Dm755 contrib/tg-completion.bash -t "$out/share/bash-completion/completions/"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
Reference in New Issue
Block a user