about summary refs log tree commit diff
path: root/pkgs/games/gnuchess/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/games/gnuchess/default.nix')
-rw-r--r--pkgs/games/gnuchess/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/games/gnuchess/default.nix b/pkgs/games/gnuchess/default.nix
index 3acf6a8aa62de..7e1bdd1d48cee 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"