diff options
Diffstat (limited to 'pkgs/by-name/li/libcaca/package.nix')
-rw-r--r-- | pkgs/by-name/li/libcaca/package.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/by-name/li/libcaca/package.nix b/pkgs/by-name/li/libcaca/package.nix index 6b99439fe017..78b81bf49169 100644 --- a/pkgs/by-name/li/libcaca/package.nix +++ b/pkgs/by-name/li/libcaca/package.nix @@ -7,7 +7,7 @@ , ncurses , pkg-config , zlib -, x11Support ? !stdenv.isDarwin +, x11Support ? !stdenv.hostPlatform.isDarwin }: stdenv.mkDerivation rec { @@ -39,6 +39,10 @@ stdenv.mkDerivation rec { configureFlags = [ (if x11Support then "--enable-x11" else "--disable-x11") + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # Suppresses a build failure building Cocoa support due to accessing private ivar `_running`, + # which no longer available. + (lib.enableFeature false "cocoa") ]; env.NIX_CFLAGS_COMPILE = lib.optionalString (!x11Support) "-DX_DISPLAY_MISSING"; |