From 4edf59e00a1ab12dd000d188e84ea91ef8c0dc68 Mon Sep 17 00:00:00 2001 From: piegames Date: Sat, 26 Mar 2022 13:24:42 +0100 Subject: [PATCH] gnomeExtensions.screen-autorotate: Patch gjs path Fixes #164865 --- pkgs/desktops/gnome/extensions/extensionOverrides.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/desktops/gnome/extensions/extensionOverrides.nix b/pkgs/desktops/gnome/extensions/extensionOverrides.nix index bc659b9a4438..df776b87de2f 100644 --- a/pkgs/desktops/gnome/extensions/extensionOverrides.nix +++ b/pkgs/desktops/gnome/extensions/extensionOverrides.nix @@ -61,6 +61,16 @@ super: lib.trivial.pipe super [ ''; })) + (patchExtension "screen-autorotate@kosmospredanie.yandex.ru" (old: { + # Requires gjs + # https://github.com/NixOS/nixpkgs/issues/164865 + postPatch = '' + for file in *.js; do + substituteInPlace $file --replace "gjs" "${gjs}/bin/gjs" + done + ''; + })) + (patchExtension "shell-volume-mixer@derhofbauer.at" (old: { patches = [ (substituteAll {