c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
41 lines
766 B
Nix
41 lines
766 B
Nix
{
|
|
mkKdeDerivation,
|
|
pkg-config,
|
|
systemd,
|
|
gdb,
|
|
python3,
|
|
substituteAll,
|
|
coreutils,
|
|
}: let
|
|
gdb' = gdb.override {
|
|
hostCpuOnly = true;
|
|
python3 = python3.withPackages (ps: [
|
|
ps.psutil
|
|
ps.pygdbmi
|
|
ps.sentry-sdk
|
|
]);
|
|
};
|
|
in
|
|
mkKdeDerivation {
|
|
pname = "drkonqi";
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./gdb-path.patch;
|
|
gdb = "${gdb'}/bin/gdb";
|
|
})
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/coredump/processor/drkonqi-coredump-pickup.service.cmake \
|
|
--replace /usr/bin/sleep ${coreutils}/bin/sleep
|
|
'';
|
|
|
|
extraNativeBuildInputs = [pkg-config];
|
|
extraBuildInputs = [systemd];
|
|
|
|
extraCmakeFlags = [
|
|
"-DWITH_GDB12=1"
|
|
"-DWITH_PYTHON_VENDORING=0"
|
|
];
|
|
}
|