Merge pull request #195636 from nrdxp/fix-qutebrowser-help
qutebrowser-qt6: fix help command
This commit is contained in:
commit
2e2a8a5a98
@ -75,7 +75,8 @@ buildPythonApplication {
|
||||
nativeBuildInputs = [
|
||||
wrapQtAppsHook wrapGAppsHook asciidoc
|
||||
docbook_xml_dtd_45 docbook_xsl libxml2 libxslt
|
||||
];
|
||||
]
|
||||
++ lib.optional isQt6 python3Packages.pygments;
|
||||
|
||||
propagatedBuildInputs = with python3Packages; ([
|
||||
pyyaml backendPackage jinja2 pygments
|
||||
@ -97,6 +98,12 @@ buildPythonApplication {
|
||||
dontWrapGApps = true;
|
||||
dontWrapQtApps = true;
|
||||
|
||||
preConfigure = ''
|
||||
a2x -f manpage doc/qutebrowser.1.asciidoc
|
||||
'' + lib.optionalString isQt6 ''
|
||||
python scripts/asciidoc2html.py
|
||||
'';
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace qutebrowser/misc/quitter.py --subst-var-by qutebrowser "$out/bin/qutebrowser"
|
||||
|
||||
@ -105,10 +112,6 @@ buildPythonApplication {
|
||||
sed -i "s,/usr/share/pdf.js,${pdfjs},g" qutebrowser/browser/pdfjs.py
|
||||
'';
|
||||
|
||||
postBuild = ''
|
||||
a2x -f manpage doc/qutebrowser.1.asciidoc
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 doc/qutebrowser.1 "$out/share/man/man1/qutebrowser.1"
|
||||
install -Dm644 misc/org.qutebrowser.qutebrowser.desktop \
|
||||
|
Loading…
Reference in New Issue
Block a user