nixpkgs/pkgs/applications/editors/cpeditor/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
936 B
Nix
Raw Normal View History

2021-12-02 17:38:14 +00:00
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, qtbase
, qttools
, wrapQtAppsHook
, cmake
, ninja
, python3
, runtimeShell
}:
stdenv.mkDerivation rec {
pname = "cpeditor";
2024-02-17 06:17:44 +00:00
version = "6.11.2";
2021-12-02 17:38:14 +00:00
src = fetchFromGitHub {
owner = "cpeditor";
repo = "cpeditor";
rev = version;
2024-02-17 06:17:44 +00:00
sha256 = "sha256-zotbXzRjIwZdYluJiz6GWUIOXl/wz1TWt+dcTwMhURo=";
2021-12-02 17:38:14 +00:00
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake ninja pkg-config wrapQtAppsHook python3 ];
buildInputs = [ qtbase qttools ];
postPatch = ''
substituteInPlace src/Core/Runner.cpp --replace "/bin/bash" "${runtimeShell}"
'';
env.NIX_CFLAGS_COMPILE = "-std=c++14";
2021-12-02 17:38:14 +00:00
meta = with lib; {
description = "An IDE specially designed for competitive programming";
homepage = "https://cpeditor.org";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ rewine ];
2023-11-27 01:17:53 +00:00
mainProgram = "cpeditor";
2021-12-02 17:38:14 +00:00
};
}