gnomeExtensions.brightness-control-using-ddcutil: Fix paths
Fixes #136111.
commit0ce4ae676a817d028af86931ccd4a23f4e9fb4eb
authorpiegames <git@piegames.de>
dateWed 8 Sep 2021, 22:52 (5 years ago)
parent2c063fe
pkgs/desktops/gnome/extensions/extensionPatches.nix+8
@@ -11,4 +11,12 @@
1111# the upstream repository's sources.
1212super: super // {
1313
14+ "display-brightness-ddcutil@themightydeity.github.com" = super."display-brightness-ddcutil@themightydeity.github.com".overrideAttrs (old: {
15+ # Has a hard-coded path to a run-time dependency
16+ # https://github.com/NixOS/nixpkgs/issues/136111
17+ postPatch = ''
18+ substituteInPlace "extension.js" --replace "/usr/bin/ddcutil" "${ddcutil}/bin/ddcutil"
19+ '';
20+ });
21+
1422}