eolie: 0.9.16 -> 0.9.35 (#42813)
This commit is contained in:
parent
ab340f7829
commit
a276404d44
@ -1,35 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
@ -1,67 +1,53 @@
|
|||||||
{ stdenv, fetchgit, intltool, itstool, meson, ninja, pkgconfig, wrapGAppsHook
|
{ stdenv, fetchgit, meson, ninja, pkgconfig, wrapGAppsHook
|
||||||
, glib, glib-networking, gsettings-desktop-schemas, gst_all_1, gtk3, gobjectIntrospection
|
, desktop-file-utils, gobjectIntrospection, python36Packages
|
||||||
, gtkspell3, libsecret, python36, python36Packages, webkitgtk }:
|
, gnome3, gst_all_1, gtkspell3, hunspell }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "eolie-${version}";
|
name = "eolie-${version}";
|
||||||
version = "0.9.16";
|
version = "0.9.35";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = https://gitlab.gnome.org/gnumdk/eolie;
|
url = "https://gitlab.gnome.org/World/eolie";
|
||||||
rev = version;
|
rev = "refs/tags/${version}";
|
||||||
sha256 = "0mvhr6hy4nx7xaq9r9qp5rb0y293kjjryw5ykzb473cr3iwzk25b";
|
fetchSubmodules = true;
|
||||||
|
sha256 = "0x3p1fgx1fhrnr7vkkpnl34401r6k6xg2mrjff7ncb1k57q522k7";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = with python36Packages; [
|
||||||
intltool
|
desktop-file-utils
|
||||||
itstool
|
gobjectIntrospection
|
||||||
meson
|
meson
|
||||||
ninja
|
ninja
|
||||||
pkgconfig
|
pkgconfig
|
||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
gobjectIntrospection
|
wrapPython
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [ gtkspell3 hunspell python36Packages.pygobject3 ] ++ (with gnome3; [
|
||||||
glib
|
glib glib-networking gsettings_desktop_schemas gtk3 webkitgtk libsecret
|
||||||
glib-networking
|
]) ++ (with gst_all_1; [
|
||||||
gsettings-desktop-schemas
|
gst-libav gst-plugins-base gst-plugins-ugly gstreamer
|
||||||
gst_all_1.gstreamer
|
]);
|
||||||
gst_all_1.gst-plugins-base
|
|
||||||
gst_all_1.gst-plugins-good
|
pythonPath = with python36Packages; [
|
||||||
gst_all_1.gst-plugins-bad
|
beautifulsoup4
|
||||||
gst_all_1.gst-plugins-ugly
|
pycairo
|
||||||
gst_all_1.gst-libav
|
pygobject3
|
||||||
gtk3
|
python-dateutil
|
||||||
gtkspell3
|
|
||||||
libsecret
|
|
||||||
python36
|
|
||||||
python36Packages.pygobject3
|
|
||||||
python36Packages.pycairo
|
|
||||||
python36Packages.dateutil
|
|
||||||
python36Packages.dbus-python
|
|
||||||
python36Packages.beautifulsoup4
|
|
||||||
python36Packages.pycrypto
|
|
||||||
python36Packages.requests
|
|
||||||
webkitgtk
|
|
||||||
];
|
];
|
||||||
|
|
||||||
wrapPrefixVariables = [ "PYTHONPATH" ];
|
postFixup = "wrapPythonPrograms";
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
chmod +x meson_post_install.py # patchShebangs requires executable file
|
chmod +x meson_post_install.py # patchShebangs requires executable file
|
||||||
patchShebangs meson_post_install.py
|
patchShebangs meson_post_install.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
patches = [
|
|
||||||
./0001-Extend-the-python-path-rather-than-replacing-it.patch
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A new GNOME web browser";
|
description = "A new GNOME web browser";
|
||||||
homepage = https://wiki.gnome.org/Apps/Eolie;
|
homepage = https://wiki.gnome.org/Apps/Eolie;
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = [ maintainers.samdroid-apps ];
|
maintainers = with maintainers; [ samdroid-apps worldofpeace ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user