2021-09-08 22:49:05 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
ddcutil,
|
|
|
|
gjs,
|
|
|
|
}:
|
|
|
|
# A set of overrides for automatically packaged extensions that require some small fixes.
|
|
|
|
# The input must be an attribute set with the extensions' UUIDs as keys and the extension
|
|
|
|
# derivations as values. Output is the same, but with patches applied.
|
|
|
|
#
|
|
|
|
# Note that all source patches refer to the built extension as published on extensions.gnome.org, and not
|
|
|
|
# the upstream repository's sources.
|
|
|
|
super: super // {
|
|
|
|
|
2021-09-08 22:52:32 +02:00
|
|
|
"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"
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2021-09-08 22:49:05 +02:00
|
|
|
}
|