variety: fix wrapper
This commit is contained in:
parent
8259e82318
commit
fd30eef8fd
1 changed files with 21 additions and 14 deletions
|
@ -11,8 +11,10 @@
|
||||||
, python3
|
, python3
|
||||||
, runtimeShell
|
, runtimeShell
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
, fehSupport ? false, feh
|
, fehSupport ? false
|
||||||
, imagemagickSupport ? true, imagemagick
|
, feh
|
||||||
|
, imagemagickSupport ? true
|
||||||
|
, imagemagick
|
||||||
}:
|
}:
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
|
@ -29,17 +31,19 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
intltool
|
intltool
|
||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
|
gobject-introspection
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
buildInputs = [
|
||||||
gexiv2
|
gexiv2
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
gtk3
|
gtk3
|
||||||
hicolor-icon-theme
|
hicolor-icon-theme
|
||||||
libnotify
|
libnotify
|
||||||
librsvg
|
librsvg
|
||||||
]
|
];
|
||||||
++ (with python3.pkgs; [
|
|
||||||
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
configobj
|
configobj
|
||||||
dbus-python
|
dbus-python
|
||||||
|
@ -51,14 +55,17 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
pygobject3
|
pygobject3
|
||||||
requests
|
requests
|
||||||
setuptools
|
setuptools
|
||||||
])
|
]
|
||||||
++ lib.optional fehSupport feh
|
++ lib.optional fehSupport feh
|
||||||
++ lib.optional imagemagickSupport imagemagick;
|
++ lib.optional imagemagickSupport imagemagick;
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
postInstall = ''
|
# Prevent double wrapping, let the Python wrapper use the args in preFixup.
|
||||||
wrapProgram $out/bin/variety --suffix XDG_DATA_DIRS : ${gtk3}/share/gsettings-schemas/${gtk3.name}/
|
dontWrapGApps = true;
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
||||||
'';
|
'';
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
|
|
Loading…
Reference in a new issue