Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
786 B
Nix
44 lines
786 B
Nix
{
|
|
mkKdeDerivation,
|
|
pkg-config,
|
|
systemd,
|
|
elfutils,
|
|
gdb,
|
|
python3,
|
|
replaceVars,
|
|
}:
|
|
let
|
|
gdb' = gdb.override {
|
|
hostCpuOnly = true;
|
|
python3 = python3.withPackages (ps: [
|
|
ps.psutil
|
|
ps.pygdbmi
|
|
ps.sentry-sdk
|
|
]);
|
|
};
|
|
in
|
|
mkKdeDerivation {
|
|
pname = "drkonqi";
|
|
|
|
patches = [
|
|
(replaceVars ./hardcode-paths.patch {
|
|
gdb = "${gdb'}/bin/gdb";
|
|
eu-unstrip = "${elfutils}/bin/eu-unstrip";
|
|
})
|
|
];
|
|
|
|
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
|
|
'';
|
|
}
|