From 837003bc80832392f181105c69c8d4eaf1cde064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Mon, 29 Apr 2024 11:22:56 +1000 Subject: [PATCH] gtypist: fix new clang New clang defaults to C standard higher than 89. Gtypist fails to compile with that. Explicitly set gnu89 when compiling instead. --- pkgs/games/gtypist/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/games/gtypist/default.nix b/pkgs/games/gtypist/default.nix index 43b95bacefc8..169b0fa77db0 100644 --- a/pkgs/games/gtypist/default.nix +++ b/pkgs/games/gtypist/default.nix @@ -9,6 +9,8 @@ stdenv.mkDerivation rec { sha256 = "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"; }; + CFLAGS = "-std=gnu89"; + nativeBuildInputs = [ makeWrapper ]; buildInputs = [ ncurses perl fortune ] ++ lib.optional stdenv.isDarwin libiconv;