tree-wide: unify Bash completions outputs (#103421)

Use $out/share/bash-completion/completions to store the Bash completions
This commit is contained in:
Jonas Chevalier
2020-11-12 21:22:18 +00:00
committed by GitHub
parent 3fceafce1e
commit a7cb88c3de
25 changed files with 46 additions and 41 deletions
@@ -38,7 +38,7 @@ in stdenv.mkDerivation rec {
installFlags = [
"PREFIX=$(out)"
"BASHCOMPDIR=$(out)/etc/bash_completion.d"
"BASHCOMPDIR=$(out)/share/bash-completion/completions"
];
postFixup = ''
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
postPatch = ''
substituteInPlace Makefile \
--replace "BASHCOMPDIR ?= /etc/bash_completion.d" "BASHCOMPDIR ?= $out/etc/bash_completion.d"
--replace "BASHCOMPDIR ?= /etc/bash_completion.d" "BASHCOMPDIR ?= $out/share/bash-completion/completions"
'';
dontBuild = true;