about summary refs log tree commit diff
path: root/pkgs/applications/misc
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2021-06-13 13:16:58 -0300
committerGitHub <noreply@github.com>2021-06-13 13:16:58 -0300
commit31b25d63ff1695336f9315cfdb5ae4077127af0d (patch)
tree725971ce562d97fd551dd9d8e0c582d02232b292 /pkgs/applications/misc
parent2c2b33c326a3faf5dc86e373dfafe0dcf3eb5136 (diff)
parentcf69e3dc605b2d213989c4e339459ed3ad3575e8 (diff)
Merge pull request #125660 from p3psi-boo/master
variety: fixed GLib-GIO-ERROR error
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r--pkgs/applications/misc/variety/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/applications/misc/variety/default.nix b/pkgs/applications/misc/variety/default.nix
index 2366d04b9ca1f..5e7765a16fdeb 100644
--- a/pkgs/applications/misc/variety/default.nix
+++ b/pkgs/applications/misc/variety/default.nix
@@ -10,6 +10,7 @@
 , hicolor-icon-theme
 , librsvg
 , wrapGAppsHook
+, makeWrapper
 }:
 
 with python37Packages;
@@ -27,10 +28,14 @@ buildPythonApplication rec {
 
   nativeBuildInputs = [ intltool wrapGAppsHook ];
 
-  buildInputs = [ distutils_extra ];
+  buildInputs = [ makeWrapper distutils_extra ];
 
   doCheck = false;
 
+  postInstall = ''
+    wrapProgram $out/bin/variety --suffix XDG_DATA_DIRS : ${gtk3}/share/gsettings-schemas/${gtk3.name}/
+  '';
+
   prePatch = ''
     substituteInPlace variety_lib/varietyconfig.py \
       --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.
     '';
     license = licenses.gpl3;
-    maintainers = with maintainers; [ AndersonTorres zfnmxt ];
+    maintainers = with maintainers; [ p3psi AndersonTorres zfnmxt ];
     platforms = with platforms; linux;
   };
 }