From a2f04a39ea91f9f79ef8c4b0280a6a94dc7860f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 28 Jan 2025 23:21:14 +0100 Subject: [PATCH] screen: fix darwin build --- pkgs/tools/misc/screen/default.nix | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/pkgs/tools/misc/screen/default.nix b/pkgs/tools/misc/screen/default.nix index f19716bbc960..ccfe19bbfde7 100644 --- a/pkgs/tools/misc/screen/default.nix +++ b/pkgs/tools/misc/screen/default.nix @@ -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; }; }