python-osc: enable (install) bash completion
This commit is contained in:
parent
dc31a1ea29
commit
d7f10f2828
@ -16752,8 +16752,19 @@ in {
|
||||
rev = "64cbb10095cf9ef0270d65fff58085a13bc0abe9";
|
||||
sha256 = "0s5kz5ln96ka0f1sa9nyp34c28mkxkrgcxbvysdawlppg7ay9s1z";
|
||||
};
|
||||
buildInputs = with pkgs; [ bashInteractive ]; # needed for bash-completion helper
|
||||
propagatedBuildInputs = with self; [ urlgrabber m2crypto pyyaml ];
|
||||
postInstall = "ln -s $out/bin/osc-wrapper.py $out/bin/osc";
|
||||
postInstall = ''
|
||||
ln -s $out/bin/osc-wrapper.py $out/bin/osc
|
||||
install -D -m555 dist/osc.complete $out/share/bash-completion/helpers/osc-helper
|
||||
mkdir -p $out/share/bash-completion/completions
|
||||
cat >>$out/share/bash-completion/completions/osc <<EOF
|
||||
test -z "\$BASH_VERSION" && return
|
||||
complete -o default _nullcommand >/dev/null 2>&1 || return
|
||||
complete -r _nullcommand >/dev/null 2>&1 || return
|
||||
complete -o default -C $out/share/bash-completion/helpers/osc-helper osc
|
||||
EOF
|
||||
'';
|
||||
meta = {
|
||||
description = "opensuse-commander with svn like handling";
|
||||
maintainers = [ maintainers.peti ];
|
||||
|
Loading…
Reference in New Issue
Block a user