mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
41 lines
864 B
Nix
41 lines
864 B
Nix
|
{ lib
|
||
|
, stdenv
|
||
|
, fetchFromGitHub
|
||
|
, pkg-config
|
||
|
, qtbase
|
||
|
, qttools
|
||
|
, wrapQtAppsHook
|
||
|
, cmake
|
||
|
, ninja
|
||
|
, python3
|
||
|
, runtimeShell
|
||
|
}:
|
||
|
|
||
|
stdenv.mkDerivation rec {
|
||
|
pname = "cpeditor";
|
||
|
version = "6.10.1";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "cpeditor";
|
||
|
repo = "cpeditor";
|
||
|
rev = version;
|
||
|
sha256 = "sha256-SIREoOapaZTLtqi0Z07lKmNqF9a9qIpgGxuhqaY3yfU=";
|
||
|
fetchSubmodules = true;
|
||
|
};
|
||
|
|
||
|
nativeBuildInputs = [ cmake ninja pkg-config wrapQtAppsHook python3 ];
|
||
|
buildInputs = [ qtbase qttools ];
|
||
|
|
||
|
postPatch = ''
|
||
|
substituteInPlace src/Core/Runner.cpp --replace "/bin/bash" "${runtimeShell}"
|
||
|
'';
|
||
|
|
||
|
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 ];
|
||
|
};
|
||
|
}
|