diff options
author | annalee <168274788+annaleeleaves@users.noreply.github.com> | 2024-05-07 06:41:37 +0000 |
---|---|---|
committer | annalee <168274788+annaleeleaves@users.noreply.github.com> | 2024-05-07 06:41:40 +0000 |
commit | a4e357cec93dcba435c8812863dfe73c1ef3fc35 (patch) | |
tree | 59186b4f1267cb49246efc2c74e428b536d527e7 /pkgs | |
parent | 9fb582619d1397a8cb64cfe28896a064fa1b33cb (diff) |
gnuchess: unbreak clang build with -std=c++14
register keyword is removed in c++17
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/games/gnuchess/default.nix | 5 |
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" |