-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #137131 from piegamesde/gnome-extensions
gnomeExtensions: add patch framework and fix extensions
- Loading branch information
Showing
4 changed files
with
52 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
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 // { | ||
|
||
"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" | ||
''; | ||
}); | ||
|
||
"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 | ||
''; | ||
}); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters