util-linux: install completion

This commit is contained in:
laalsaas 2023-02-06 19:38:41 +01:00
parent f7bae54f01
commit 7d9ab620de

View File

@ -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";