From 2229c311e4a70762a33887c0442e0d16ccecf4c5 Mon Sep 17 00:00:00 2001 From: rewine Date: Tue, 27 Jun 2023 10:52:13 +0800 Subject: [PATCH] cpeditor: fixup build cpeditor require c++14, the setting of CMAKE_CXX_STANDARD does not seem to affect submodules --- pkgs/applications/editors/cpeditor/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/editors/cpeditor/default.nix b/pkgs/applications/editors/cpeditor/default.nix index eaa2b0d9959c..718c3fdd20fd 100644 --- a/pkgs/applications/editors/cpeditor/default.nix +++ b/pkgs/applications/editors/cpeditor/default.nix @@ -30,6 +30,8 @@ stdenv.mkDerivation rec { substituteInPlace src/Core/Runner.cpp --replace "/bin/bash" "${runtimeShell}" ''; + env.NIX_CFLAGS_COMPILE = "-std=c++14"; + meta = with lib; { description = "An IDE specially designed for competitive programming"; homepage = "https://cpeditor.org";