mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 04:13:12 +00:00
b0f417b5e9
QString strikes again. Fixes #352013.
43 lines
736 B
Nix
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
|
|
'';
|
|
}
|