From a4e357cec93dcba435c8812863dfe73c1ef3fc35 Mon Sep 17 00:00:00 2001 From: annalee <168274788+annaleeleaves@users.noreply.github.com> Date: Tue, 7 May 2024 06:41:37 +0000 Subject: [PATCH] gnuchess: unbreak clang build with -std=c++14 register keyword is removed in c++17 --- pkgs/games/gnuchess/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/games/gnuchess/default.nix b/pkgs/games/gnuchess/default.nix index 3acf6a8aa62d..7e1bdd1d48ce 100644 --- a/pkgs/games/gnuchess/default.nix +++ b/pkgs/games/gnuchess/default.nix @@ -14,6 +14,11 @@ stdenv.mkDerivation rec { ]; nativeBuildInputs = [ makeWrapper ]; + configureFlags = [ + # register keyword is removed in c++17 so stick to c++14 + "CXXFLAGS=-std=c++14" + ]; + postInstall = '' wrapProgram $out/bin/gnuchessx --set PATH "$out/bin" wrapProgram $out/bin/gnuchessu --set PATH "$out/bin"