Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
libsForQt5,
|
|
pkg-config,
|
|
cmake,
|
|
ninja,
|
|
python3,
|
|
runtimeShell,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "cpeditor";
|
|
version = "7.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cpeditor";
|
|
repo = "cpeditor";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-t7nn3sO45dOQq5OMWhaseO9XHicQ/1fjukXal5yPMgY";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
ninja
|
|
pkg-config
|
|
libsForQt5.wrapQtAppsHook
|
|
python3
|
|
];
|
|
buildInputs = [
|
|
libsForQt5.qtbase
|
|
libsForQt5.qttools
|
|
libsForQt5.syntax-highlighting
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/Core/Runner.cpp --replace-fail "/bin/bash" "${runtimeShell}"
|
|
substituteInPlace dist/linux/cpeditor.desktop --replace-fail 'Exec=/usr/bin/cpeditor' "Exec=cpeditor"
|
|
'';
|
|
|
|
meta = {
|
|
description = "IDE specially designed for competitive programming";
|
|
homepage = "https://cpeditor.org";
|
|
license = lib.licenses.gpl3Plus;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ lib.maintainers.wineee ];
|
|
mainProgram = "cpeditor";
|
|
};
|
|
})
|