nixpkgs/pkgs/kde/plasma/drkonqi/default.nix
2024-10-29 09:12:38 +03:00

43 lines
736 B
Nix

{
mkKdeDerivation,
pkg-config,
systemd,
gdb,
python3,
substituteAll,
}:
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";
})
];
extraNativeBuildInputs = [ pkg-config ];
extraBuildInputs = [ systemd ];
extraCmakeFlags = [
"-DWITH_GDB12=1"
"-DWITH_PYTHON_VENDORING=0"
];
# Hardcoded as QString, which is UTF-16 so Nix can't pick it up automatically
postFixup = ''
mkdir -p $out/nix-support
echo "${gdb'}" > $out/nix-support/depends
'';
}