40 lines
1.2 KiB
Nix
Raw Normal View History

{ 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 }:
2015-06-23 03:25:25 +02:00
2016-07-27 16:50:29 +02:00
let version = "0.8.1"; in
2015-06-23 03:25:25 +02:00
buildPythonApplication rec {
2015-06-23 03:25:25 +02:00
name = "qutebrowser-${version}";
namePrefix = "";
src = fetchurl {
url = "https://github.com/The-Compiler/qutebrowser/releases/download/v${version}/${name}.tar.gz";
2016-07-27 16:50:29 +02:00
sha256 = "18hj95pgybpavwwnyczh6s94spljfngz684y1jlhqnpbp14pkflh";
};
# Needs tox
doCheck = false;
buildInputs = [ wrapGAppsHook makeQtWrapper
qtmultimedia
gst-plugins-base gst-plugins-good gst-plugins-bad gst-libav
glib_networking ];
propagatedBuildInputs = [
python pyyaml pyqt5 jinja2 pygments pypeg2
];
postInstall = ''
mv $out/bin/qutebrowser $out/bin/.qutebrowser-noqtpath
makeQtWrapper $out/bin/.qutebrowser-noqtpath $out/bin/qutebrowser
'';
meta = {
homepage = https://github.com/The-Compiler/qutebrowser;
description = "Keyboard-focused browser with a minimal GUI";
license = stdenv.lib.licenses.gpl3Plus;
maintainers = [ stdenv.lib.maintainers.jagajaga ];
2015-06-23 03:25:25 +02:00
};
}