depot/third_party/nixpkgs/pkgs/kde/plasma/drkonqi/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

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"
];
}