skopeo: install completion
This commit is contained in:
parent
6dc7443d1b
commit
c34bc1d824
@ -9,6 +9,7 @@
|
|||||||
, pkg-config
|
, pkg-config
|
||||||
, libselinux
|
, libselinux
|
||||||
, go-md2man
|
, go-md2man
|
||||||
|
, installShellFiles
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -37,7 +38,7 @@ buildGoPackage {
|
|||||||
|
|
||||||
excludedPackages = [ "integration" ];
|
excludedPackages = [ "integration" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config go-md2man ];
|
nativeBuildInputs = [ pkg-config go-md2man installShellFiles ];
|
||||||
buildInputs = [ gpgme ]
|
buildInputs = [ gpgme ]
|
||||||
++ stdenv.lib.optionals stdenv.isLinux [ libgpgerror lvm2 btrfs-progs libselinux ];
|
++ stdenv.lib.optionals stdenv.isLinux [ libgpgerror lvm2 btrfs-progs libselinux ];
|
||||||
|
|
||||||
@ -51,6 +52,7 @@ buildGoPackage {
|
|||||||
# depends on buildGoPackage not changing …
|
# depends on buildGoPackage not changing …
|
||||||
pushd ./go/src/${goPackagePath}
|
pushd ./go/src/${goPackagePath}
|
||||||
make install-docs MANINSTALLDIR="$man/share/man"
|
make install-docs MANINSTALLDIR="$man/share/man"
|
||||||
|
installShellCompletion --bash completions/bash/skopeo
|
||||||
popd
|
popd
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user