summary refs log tree commit diff
path: root/pkgs/desktops/gnome/extensions/extensionPatches.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/desktops/gnome/extensions/extensionPatches.nix')
-rw-r--r--pkgs/desktops/gnome/extensions/extensionPatches.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/desktops/gnome/extensions/extensionPatches.nix b/pkgs/desktops/gnome/extensions/extensionPatches.nix
index 21c75ebf196..2188e06d433 100644
--- a/pkgs/desktops/gnome/extensions/extensionPatches.nix
+++ b/pkgs/desktops/gnome/extensions/extensionPatches.nix
@@ -11,4 +11,12 @@
 # the upstream repository's sources.
 super: super // {
 
+  "display-brightness-ddcutil@themightydeity.github.com" = super."display-brightness-ddcutil@themightydeity.github.com".overrideAttrs (old: {
+    # Has a hard-coded path to a run-time dependency
+    # https://github.com/NixOS/nixpkgs/issues/136111
+    postPatch = ''
+      substituteInPlace "extension.js" --replace "/usr/bin/ddcutil" "${ddcutil}/bin/ddcutil"
+    '';
+  });
+
 }