eolie: 0.9.16 -> 0.9.35 (#42813)

Changed files
+28 -77
pkgs
-35
pkgs/applications/networking/browsers/eolie/0001-Extend-the-python-path-rather-than-replacing-it.patch
···
-
From b51b63b78c9ff1639f5f65ccfdd54681f1cadc1d Mon Sep 17 00:00:00 2001
-
From: Sam Parkinson <sam@sam.today>
-
Date: Tue, 26 Dec 2017 14:46:27 +1100
-
Subject: [PATCH] Extend the python path; rather than replacing it
-
-
Some distros (i.e. NixOS) require the special PYTHONPATH, so that
-
the web extension has access to the python packages it wants (i.e. gi).
-
-
Previously, the PYTHONPATH was replaced with the web extension path;
-
meaning it would crash on NixOS. This instead prepends the web
-
extension path to the PYTHONPATH.
-
---
-
eolie/application.py | 6 +++++-
-
1 file changed, 5 insertions(+), 1 deletion(-)
-
-
diff --git a/eolie/application.py b/eolie/application.py
-
index 3c21542..bed4e55 100644
-
--- a/eolie/application.py
-
+++ b/eolie/application.py
-
@@ -340,7 +340,11 @@ class Application(Gtk.Application):
-
self.settings = Settings.new()
-
-
# Init extensions
-
- GLib.setenv("PYTHONPATH", self.__extension_dir, True)
-
+ current_path = GLib.getenv("PYTHONPATH")
-
+ new_path = self.__extension_dir
-
+ if current_path:
-
+ new_path = new_path + ':' + current_path
-
+ GLib.setenv("PYTHONPATH", new_path, True)
-
-
# Create favicon path
-
if not GLib.file_test(self.__FAVICONS_PATH, GLib.FileTest.IS_DIR):
-
--
-
2.15.0
-
···
+28 -42
pkgs/applications/networking/browsers/eolie/default.nix
···
-
{ stdenv, fetchgit, intltool, itstool, meson, ninja, pkgconfig, wrapGAppsHook
-
, glib, glib-networking, gsettings-desktop-schemas, gst_all_1, gtk3, gobjectIntrospection
-
, gtkspell3, libsecret, python36, python36Packages, webkitgtk }:
stdenv.mkDerivation rec {
name = "eolie-${version}";
-
version = "0.9.16";
src = fetchgit {
-
url = https://gitlab.gnome.org/gnumdk/eolie;
-
rev = version;
-
sha256 = "0mvhr6hy4nx7xaq9r9qp5rb0y293kjjryw5ykzb473cr3iwzk25b";
};
-
nativeBuildInputs = [
-
intltool
-
itstool
meson
ninja
pkgconfig
wrapGAppsHook
-
gobjectIntrospection
];
-
buildInputs = [
-
glib
-
glib-networking
-
gsettings-desktop-schemas
-
gst_all_1.gstreamer
-
gst_all_1.gst-plugins-base
-
gst_all_1.gst-plugins-good
-
gst_all_1.gst-plugins-bad
-
gst_all_1.gst-plugins-ugly
-
gst_all_1.gst-libav
-
gtk3
-
gtkspell3
-
libsecret
-
python36
-
python36Packages.pygobject3
-
python36Packages.pycairo
-
python36Packages.dateutil
-
python36Packages.dbus-python
-
python36Packages.beautifulsoup4
-
python36Packages.pycrypto
-
python36Packages.requests
-
webkitgtk
];
-
wrapPrefixVariables = [ "PYTHONPATH" ];
postPatch = ''
chmod +x meson_post_install.py # patchShebangs requires executable file
patchShebangs meson_post_install.py
'';
-
-
patches = [
-
./0001-Extend-the-python-path-rather-than-replacing-it.patch
-
];
meta = with stdenv.lib; {
description = "A new GNOME web browser";
-
homepage = https://wiki.gnome.org/Apps/Eolie;
-
license = licenses.gpl3;
-
maintainers = [ maintainers.samdroid-apps ];
-
platforms = platforms.linux;
};
}
···
+
{ stdenv, fetchgit, meson, ninja, pkgconfig, wrapGAppsHook
+
, desktop-file-utils, gobjectIntrospection, python36Packages
+
, gnome3, gst_all_1, gtkspell3, hunspell }:
stdenv.mkDerivation rec {
name = "eolie-${version}";
+
version = "0.9.35";
src = fetchgit {
+
url = "https://gitlab.gnome.org/World/eolie";
+
rev = "refs/tags/${version}";
+
fetchSubmodules = true;
+
sha256 = "0x3p1fgx1fhrnr7vkkpnl34401r6k6xg2mrjff7ncb1k57q522k7";
};
+
nativeBuildInputs = with python36Packages; [
+
desktop-file-utils
+
gobjectIntrospection
meson
ninja
pkgconfig
wrapGAppsHook
+
wrapPython
];
+
buildInputs = [ gtkspell3 hunspell python36Packages.pygobject3 ] ++ (with gnome3; [
+
glib glib-networking gsettings_desktop_schemas gtk3 webkitgtk libsecret
+
]) ++ (with gst_all_1; [
+
gst-libav gst-plugins-base gst-plugins-ugly gstreamer
+
]);
+
+
pythonPath = with python36Packages; [
+
beautifulsoup4
+
pycairo
+
pygobject3
+
python-dateutil
];
+
postFixup = "wrapPythonPrograms";
postPatch = ''
chmod +x meson_post_install.py # patchShebangs requires executable file
patchShebangs meson_post_install.py
'';
meta = with stdenv.lib; {
description = "A new GNOME web browser";
+
homepage = https://wiki.gnome.org/Apps/Eolie;
+
license = licenses.gpl3Plus;
+
maintainers = with maintainers; [ samdroid-apps worldofpeace ];
+
platforms = platforms.linux;
};
}