-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gnomeExtensions: add patch framework and fix extensions #137131
Changes from all commits
2c063fe
0ce4ae6
48064d9
2de33b7
49041cd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,32 @@ | ||||||||||||||||||||
{ | ||||||||||||||||||||
lib, | ||||||||||||||||||||
ddcutil, | ||||||||||||||||||||
gjs, | ||||||||||||||||||||
}: | ||||||||||||||||||||
Comment on lines
+1
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we had this discussion more than once in the past. Until nixpkgs settles on some coding style that is enforced automatically, I will keep it like this. |
||||||||||||||||||||
# 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 | ||||||||||||||||||||
''; | ||||||||||||||||||||
}); | ||||||||||||||||||||
|
||||||||||||||||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use install?