screen: fix darwin build

(cherry picked from commit a2f04a39ea)
This commit is contained in:
Jörg Thalheim
2025-01-28 23:21:14 +01:00
committed by github-actions[bot]
parent 59f85b8457
commit f6e7f019eb

View File

@@ -32,15 +32,14 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
autoreconfHook
];
buildInputs =
[
ncurses
libxcrypt
]
++ lib.optional stdenv.hostPlatform.isLinux pam
++ lib.optional stdenv.hostPlatform.isDarwin utmp;
buildInputs = [
ncurses
libxcrypt
pam
] ++ lib.optional stdenv.hostPlatform.isDarwin utmp;
doCheck = true;
# The test suite seems to have some glibc malloc hooks that don't exist/link on macOS
doCheck = !stdenv.hostPlatform.isDarwin;
meta = with lib; {
homepage = "https://www.gnu.org/software/screen/";
@@ -71,7 +70,5 @@ stdenv.mkDerivation rec {
platforms = platforms.unix;
maintainers = [ ];
# checking for PAM support... configure: error: no
broken = stdenv.hostPlatform.isDarwin;
};
}