util-linux: install completion
This commit is contained in:
parent
f7bae54f01
commit
7d9ab620de
@ -11,6 +11,7 @@
|
||||
, nlsSupport ? true
|
||||
, translateManpages ? true
|
||||
, po4a
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -66,7 +67,7 @@ stdenv.mkDerivation rec {
|
||||
"usrsbin_execdir=${placeholder "bin"}/sbin"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ]
|
||||
nativeBuildInputs = [ pkg-config installShellFiles ]
|
||||
++ lib.optionals translateManpages [ po4a ];
|
||||
|
||||
buildInputs = [ zlib libxcrypt ]
|
||||
@ -79,6 +80,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --bash bash-completion/*
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.kernel.org/pub/linux/utils/util-linux/";
|
||||
description = "A set of system utilities for Linux";
|
||||
|
Loading…
Reference in New Issue
Block a user