mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00:00
9988488fc6
Fixes #15597.
40 lines
1.2 KiB
Nix
40 lines
1.2 KiB
Nix
{ 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 }:
|
|
|
|
let version = "0.7.0"; in
|
|
|
|
buildPythonApplication rec {
|
|
name = "qutebrowser-${version}";
|
|
namePrefix = "";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/The-Compiler/qutebrowser/releases/download/v${version}/${name}.tar.gz";
|
|
sha256 = "17xvv4h86frcn7zmi0y9gjsz2cazlb59v3dqi9mdc11w00b1cqbn";
|
|
};
|
|
|
|
# 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 ];
|
|
};
|
|
}
|