about summary refs log tree commit diff
path: root/pkgs/applications/misc
diff options
context:
space:
mode:
authorElyhaka <57923898+Elyhaka@users.noreply.github.com>2020-03-24 13:06:45 +0100
committerElyhaka <57923898+Elyhaka@users.noreply.github.com>2020-03-24 16:59:38 +0100
commit968b6ad01775f1bdf57388747789895c691a7049 (patch)
tree1fd44b584e6c8f5bd626f66b43d6d7681f95e6f0 /pkgs/applications/misc
parent2c96f591725f0a24122e277fb179a3d0a3abc991 (diff)
wofi: fixes allow_images=true crash
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r--pkgs/applications/misc/wofi/default.nix14
1 files changed, 12 insertions, 2 deletions
diff --git a/pkgs/applications/misc/wofi/default.nix b/pkgs/applications/misc/wofi/default.nix
index 9d563429d6f6e..3c14219b141dd 100644
--- a/pkgs/applications/misc/wofi/default.nix
+++ b/pkgs/applications/misc/wofi/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, lib, fetchhg, pkg-config, meson, ninja, wayland, gtk3 }:
+{ stdenv, lib, fetchhg, fetchpatch, pkg-config, meson, ninja, wayland, gtk3, wrapGAppsHook }:
 
 stdenv.mkDerivation rec {
   pname = "wofi";
@@ -10,9 +10,19 @@ stdenv.mkDerivation rec {
     sha256 = "086j5wshawjbwdmmmldivfagc2rr7g5a2gk11l0snqqslm294xsn";
   };
 
-  nativeBuildInputs = [ pkg-config meson ninja ];
+  nativeBuildInputs = [ pkg-config meson ninja wrapGAppsHook ];
   buildInputs = [ wayland gtk3 ];
 
+  # Fixes icon bug on NixOS.
+  # Will need to be removed on next release
+  # see https://todo.sr.ht/~scoopta/wofi/54
+  patches = [
+    (fetchpatch {
+      url = "https://paste.sr.ht/blob/1cbddafac3806afb203940c029e78ce8390d8f49";
+      sha256 = "18960y9ajilrwwl6mjnrh6wj0sm4ivczmacck36p2dj9xd0n8vkh";
+    })
+  ];
+
   meta = with lib; {
     description = "A launcher/menu program for wlroots based wayland compositors such as sway";
     homepage = "https://hg.sr.ht/~scoopta/wofi";