Merge pull request #294765 from wineee/cpeditor

cpeditor: 6.11.2 -> 7.0.1
This commit is contained in:
Doron Behar 2024-03-21 11:07:34 +02:00 committed by GitHub
commit d03ae62edd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,6 +5,7 @@
, qtbase , qtbase
, qttools , qttools
, wrapQtAppsHook , wrapQtAppsHook
, syntax-highlighting
, cmake , cmake
, ninja , ninja
, python3 , python3
@ -13,25 +14,23 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "cpeditor"; pname = "cpeditor";
version = "6.11.2"; version = "7.0.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "cpeditor"; owner = "cpeditor";
repo = "cpeditor"; repo = "cpeditor";
rev = version; rev = version;
sha256 = "sha256-zotbXzRjIwZdYluJiz6GWUIOXl/wz1TWt+dcTwMhURo="; hash = "sha256-t7nn3sO45dOQq5OMWhaseO9XHicQ/1fjukXal5yPMgY";
fetchSubmodules = true; fetchSubmodules = true;
}; };
nativeBuildInputs = [ cmake ninja pkg-config wrapQtAppsHook python3 ]; nativeBuildInputs = [ cmake ninja pkg-config wrapQtAppsHook python3 ];
buildInputs = [ qtbase qttools ]; buildInputs = [ qtbase qttools syntax-highlighting ];
postPatch = '' postPatch = ''
substituteInPlace src/Core/Runner.cpp --replace "/bin/bash" "${runtimeShell}" substituteInPlace src/Core/Runner.cpp --replace-fail "/bin/bash" "${runtimeShell}"
''; '';
env.NIX_CFLAGS_COMPILE = "-std=c++14";
meta = with lib; { meta = with lib; {
description = "An IDE specially designed for competitive programming"; description = "An IDE specially designed for competitive programming";
homepage = "https://cpeditor.org"; homepage = "https://cpeditor.org";