From 73ffee897887c5ae7d5077ad5255ecb818ea79eb Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 5 Oct 2022 00:20:57 +0200 Subject: [PATCH] util-linux: pass libxcrypt, so sulogin gets built Util-linux does not fail when crypt() isn't available. It just doesn't build sulogin, which in turn breaks the initrd-builder for the systemd-stage-1 tests. --- pkgs/os-specific/linux/util-linux/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/util-linux/default.nix b/pkgs/os-specific/linux/util-linux/default.nix index d57fdba7310b..8df231c961e2 100644 --- a/pkgs/os-specific/linux/util-linux/default.nix +++ b/pkgs/os-specific/linux/util-linux/default.nix @@ -1,6 +1,7 @@ { lib, stdenv, fetchurl, pkg-config, zlib, shadow , capabilitiesSupport ? true , libcap_ng +, libxcrypt , ncursesSupport ? true , ncurses , pamSupport ? true @@ -68,7 +69,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkg-config ] ++ lib.optionals translateManpages [ po4a ]; - buildInputs = [ zlib ] + buildInputs = [ zlib libxcrypt ] ++ lib.optionals pamSupport [ pam ] ++ lib.optionals capabilitiesSupport [ libcap_ng ] ++ lib.optionals ncursesSupport [ ncurses ]