From 48064d95d944709a7eb679c0129c424c63c52371 Mon Sep 17 00:00:00 2001 From: piegames Date: Wed, 8 Sep 2021 22:52:58 +0200 Subject: [PATCH] gnomeExtensions.screenshot-tool: Fix paths Fixes #136112. --- pkgs/desktops/gnome/extensions/extensionPatches.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/desktops/gnome/extensions/extensionPatches.nix b/pkgs/desktops/gnome/extensions/extensionPatches.nix index 2188e06d4338..182bdf6ecdfb 100644 --- a/pkgs/desktops/gnome/extensions/extensionPatches.nix +++ b/pkgs/desktops/gnome/extensions/extensionPatches.nix @@ -19,4 +19,14 @@ super: super // { ''; }); + "gnome-shell-screenshot@ttll.de" = super."gnome-shell-screenshot@ttll.de".overrideAttrs (old: { + # Requires gjs + # https://github.com/NixOS/nixpkgs/issues/136112 + postPatch = '' + for file in *.js; do + substituteInPlace $file --replace "gjs" "${gjs}/bin/gjs" + done + ''; + }); + }