From 485adfa7bdd8828aea1e7545e1322764c00e8f8e Mon Sep 17 00:00:00 2001 From: Jacek Generowicz Date: Thu, 19 Sep 2019 15:38:13 +0200 Subject: [PATCH 1/2] maintainers: add jacg --- maintainers/maintainer-list.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 82100fe63af..f61144fa68e 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -2808,6 +2808,11 @@ githubId = 26877687; name = "Yurii Izorkin"; }; + jacg = { + name = "Jacek Generowicz"; + email = "jacg@my-post-office.net"; + githubId = "2570854"; + }; jasoncarr = { email = "jcarr250@gmail.com"; github = "jasoncarr0"; From bcecdd5822c380c5f529294c82b62744d8bb365b Mon Sep 17 00:00:00 2001 From: Jacek Generowicz Date: Thu, 19 Sep 2019 15:38:56 +0200 Subject: [PATCH 2/2] webmacs: init at version 0.8 --- .../networking/browsers/webmacs/default.nix | 73 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 75 insertions(+) create mode 100644 pkgs/applications/networking/browsers/webmacs/default.nix diff --git a/pkgs/applications/networking/browsers/webmacs/default.nix b/pkgs/applications/networking/browsers/webmacs/default.nix new file mode 100644 index 00000000000..0f36177278b --- /dev/null +++ b/pkgs/applications/networking/browsers/webmacs/default.nix @@ -0,0 +1,73 @@ +{ lib +, mkDerivationWith +, fetchFromGitHub +, python3Packages +, herbstluftwm +}: + +mkDerivationWith python3Packages.buildPythonApplication rec { + pname = "webmacs"; + version = "0.8"; + + disabled = python3Packages.isPy27; + + src = fetchFromGitHub { + owner = "parkouss"; + repo = "webmacs"; + rev = version; + fetchSubmodules = true; + sha256 = "1hzb9341hybgrqcy1w20hshm6xaiby4wbjpjkigf4zq389407368"; + }; + + propagatedBuildInputs = with python3Packages; [ + pyqtwebengine + setuptools + dateparser + jinja2 + pygments + ]; + + dontWrapQtApps = true; + + makeWrapperArgs = [ "\${qtWrapperArgs[@]}" ]; + + # See https://github.com/parkouss/webmacs/blob/1a04fb7bd3f33d39cb4d71621b48c2458712ed39/setup.py#L32 + # Don't know why they're using CC for g++. + preConfigure = '' + export CC=$CXX + ''; + + doCheck = false; # test dependencies not packaged up yet + + checkInputs = [ + python3Packages.pytest + #python3Packages.pytest-xvfb + #python3Packages.pytest-qt + python3Packages.pytestCheckHook + herbstluftwm + + # The following are listed in test-requirements.txt but appear not + # to be needed at present: + + # python3Packages.pytest-mock + # python3Packages.flake8 + ]; + + meta = with lib; { + description = "Keyboard-based web browser with Emacs/conkeror heritage"; + longDescription = '' + webmacs is yet another browser for keyboard-based web navigation. + + It mainly targets emacs-like navigation, and started as a clone (in terms of + features) of conkeror. + + Based on QtWebEngine and Python 3. Fully customizable in Python. + ''; + homepage = https://webmacs.readthedocs.io/en/latest/; + changelog = https://github.com/parkouss/webmacs/blob/master/CHANGELOG.md; + license = licenses.gpl3; + maintainers = with maintainers; [ jacg ]; + platforms = platforms.all; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9aabb3a0b8f..7cddde45d4e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21190,6 +21190,8 @@ in wayv = callPackage ../tools/X11/wayv {}; + webmacs = libsForQt5.callPackage ../applications/networking/browsers/webmacs {}; + webtorrent_desktop = callPackage ../applications/video/webtorrent_desktop {}; wrapWeechat = callPackage ../applications/networking/irc/weechat/wrapper.nix { };