diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-08-15 11:36:12 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-08-15 11:38:53 +0300 |
commit | 9b4a7984a4803ed5ab9c9515682778444370eb01 (patch) | |
tree | 0ab84c92e6b7fdd2fb352f89a36f36b0aaa60546 /pkgs/applications | |
parent | 397a17aef9e6c213cc2b3adc2c2ca3db76b213cb (diff) |
qutebrowser: add shared files and cleanup
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/networking/browsers/qutebrowser/default.nix | 39 |
1 files changed, 32 insertions, 7 deletions
diff --git a/pkgs/applications/networking/browsers/qutebrowser/default.nix b/pkgs/applications/networking/browsers/qutebrowser/default.nix index c8a719b194ad7..6c4dcc4e119f1 100644 --- a/pkgs/applications/networking/browsers/qutebrowser/default.nix +++ b/pkgs/applications/networking/browsers/qutebrowser/default.nix @@ -1,6 +1,7 @@ -{ stdenv, fetchurl, python, buildPythonApplication, qtmultimedia, pyqt5 -, jinja2, pygments, pyyaml, pypeg2, gst-plugins-base, gst-plugins-good -, gst-plugins-bad, gst-libav, wrapGAppsHook, glib_networking, makeQtWrapper }: +{ stdenv, fetchurl, buildPythonApplication, makeQtWrapper, wrapGAppsHook +, qtmultimedia, pyqt5, jinja2, pygments, pyyaml, pypeg2, glib_networking +, asciidoc, docbook_xml_dtd_45, docbook_xsl, libxml2, libxslt +, gst-plugins-base, gst-plugins-good, gst-plugins-bad, gst-plugins-ugly, gst-libav }: let version = "0.8.2"; in @@ -16,18 +17,42 @@ buildPythonApplication rec { # Needs tox doCheck = false; - buildInputs = [ wrapGAppsHook makeQtWrapper + buildInputs = [ qtmultimedia - gst-plugins-base gst-plugins-good gst-plugins-bad gst-libav - glib_networking ]; + gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav + glib_networking + ]; + + nativeBuildInputs = [ + makeQtWrapper wrapGAppsHook asciidoc docbook_xml_dtd_45 docbook_xsl libxml2 libxslt + ]; propagatedBuildInputs = [ - python pyyaml pyqt5 jinja2 pygments pypeg2 + pyyaml pyqt5 jinja2 pygments pypeg2 ]; + postPatch = '' + sed -i "s,/usr/share/qutebrowser,$out/share/qutebrowser,g" qutebrowser/utils/standarddir.py + ''; + + postBuild = '' + a2x -f manpage doc/qutebrowser.1.asciidoc + ''; + postInstall = '' mv $out/bin/qutebrowser $out/bin/.qutebrowser-noqtpath makeQtWrapper $out/bin/.qutebrowser-noqtpath $out/bin/qutebrowser + + install -Dm644 doc/qutebrowser.1 "$out/share/man/man1/qutebrowser.1" + install -Dm644 qutebrowser.desktop \ + "$out/share/applications/qutebrowser.desktop" + for i in 16 24 32 48 64 128 256 512; do + install -Dm644 "icons/qutebrowser-''${i}x''${i}.png" \ + "$out/share/icons/hicolor/''${i}x''${i}/apps/qutebrowser.png" + done + install -Dm644 icons/qutebrowser.svg \ + "$out/share/icons/hicolor/scalable/apps/qutebrowser.svg" + install -Dm755 -t "$out/share/qutebrowser/userscripts/" misc/userscripts/* ''; meta = { |