diff --git a/pkgs/applications/video/peek/default.nix b/pkgs/applications/video/peek/default.nix index edeb848867f..27064077a9f 100644 --- a/pkgs/applications/video/peek/default.nix +++ b/pkgs/applications/video/peek/default.nix @@ -1,5 +1,7 @@ -{ lib, stdenv +{ stdenv +, lib , fetchFromGitHub +, fetchpatch , nix-update-script , meson , ninja @@ -35,6 +37,15 @@ stdenv.mkDerivation rec { sha256 = "1xwlfizga6hvjqq127py8vabaphsny928ar7mwqj9cyqfl6fx41x"; }; + patches = [ + # Fix compatibility with GNOME Shell ≥ 40. + # https://github.com/phw/peek/pull/910 + (fetchpatch { + url = "https://github.com/phw/peek/commit/008d15316ab5428363c512b263ca8138cb8f52ba.patch"; + sha256 = "xxJ+r5uRk93MEzWTFla88ewZsnUl3+YKTenzDygtKP0="; + }) + ]; + nativeBuildInputs = [ appstream-glib desktop-file-utils