push sheeet
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

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
{
mkKdeDerivation,
replaceVars,
qtwebengine,
xapian,
man-db,
python3,
kio-extras,
}:
mkKdeDerivation {
pname = "khelpcenter";
extraBuildInputs = [
qtwebengine
xapian
python3
kio-extras
];
patches = [
(replaceVars ./use_nix_paths_for_mansearch_utilities.patch {
inherit man-db;
})
];
meta.mainProgram = "khelpcenter";
}

View File

@@ -0,0 +1,23 @@
diff --git a/searchhandlers/khc_mansearch.py b/searchhandlers/khc_mansearch.py
index ce61ed9c..a8c4c653 100755
--- a/searchhandlers/khc_mansearch.py
+++ b/searchhandlers/khc_mansearch.py
@@ -32,15 +32,15 @@ def main():
# If the query is a single word, perhaps it is the literal name of the
# command, or a prefix, or a substring
if not ' ' in words:
- results_prefix = subprocess.run(['whatis', '-w', words + '*'], capture_output=True, text=True)
+ results_prefix = subprocess.run(['@man-db@/bin/whatis', '-w', words + '*'], capture_output=True, text=True)
if results_prefix.returncode == 0:
command_results += results_prefix.stdout
- results_substring = subprocess.run(['whatis', '-w', '*' + words + '*'], capture_output=True, text=True)
+ results_substring = subprocess.run(['@man-db@/bin/whatis', '-w', '*' + words + '*'], capture_output=True, text=True)
if results_substring.returncode == 0:
command_results += results_substring.stdout
# Build the apropos command line
- apropos = ['apropos', '-L', args.lang]
+ apropos = ['@man-db@/bin/apropos', '-L', args.lang]
if args.method == 'and':
apropos.append('--and')
apropos.extend(words.split(' '))