Merge pull request #125660 from p3psi-boo/master

variety: fixed GLib-GIO-ERROR error
This commit is contained in:
Anderson Torres 2021-06-13 13:16:58 -03:00 committed by GitHub
commit 31b25d63ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,7 @@
, hicolor-icon-theme , hicolor-icon-theme
, librsvg , librsvg
, wrapGAppsHook , wrapGAppsHook
, makeWrapper
}: }:
with python37Packages; with python37Packages;
@ -27,10 +28,14 @@ buildPythonApplication rec {
nativeBuildInputs = [ intltool wrapGAppsHook ]; nativeBuildInputs = [ intltool wrapGAppsHook ];
buildInputs = [ distutils_extra ]; buildInputs = [ makeWrapper distutils_extra ];
doCheck = false; doCheck = false;
postInstall = ''
wrapProgram $out/bin/variety --suffix XDG_DATA_DIRS : ${gtk3}/share/gsettings-schemas/${gtk3.name}/
'';
prePatch = '' prePatch = ''
substituteInPlace variety_lib/varietyconfig.py \ substituteInPlace variety_lib/varietyconfig.py \
--replace "__variety_data_directory__ = \"../data\"" "__variety_data_directory__ = \"$out/share/variety\"" --replace "__variety_data_directory__ = \"../data\"" "__variety_data_directory__ = \"$out/share/variety\""
@ -76,7 +81,7 @@ buildPythonApplication rec {
blur, as well as options to layer quotes and a clock onto the background. blur, as well as options to layer quotes and a clock onto the background.
''; '';
license = licenses.gpl3; license = licenses.gpl3;
maintainers = with maintainers; [ AndersonTorres zfnmxt ]; maintainers = with maintainers; [ p3psi AndersonTorres zfnmxt ];
platforms = with platforms; linux; platforms = with platforms; linux;
}; };
} }