summary refs log tree commit diff
path: root/pkgs/desktops/gnome/extensions/extensionPatches.nix
diff options
context:
space:
mode:
authorpiegames <git@piegames.de>2021-09-08 22:49:05 +0200
committerpiegames <git@piegames.de>2021-09-08 22:54:31 +0200
commit2c063fe250e019a44eba31e4f7857d0e35065b5b (patch)
tree5859a13e25c18d40c9b9ea2eb345c7678c0c7cb3 /pkgs/desktops/gnome/extensions/extensionPatches.nix
parent18ce2af98adb9f40561ea134c5e463b799d4c7a8 (diff)
downloadnixpkgs-2c063fe250e019a44eba31e4f7857d0e35065b5b.tar
nixpkgs-2c063fe250e019a44eba31e4f7857d0e35065b5b.tar.gz
nixpkgs-2c063fe250e019a44eba31e4f7857d0e35065b5b.tar.bz2
nixpkgs-2c063fe250e019a44eba31e4f7857d0e35065b5b.tar.lz
nixpkgs-2c063fe250e019a44eba31e4f7857d0e35065b5b.tar.xz
nixpkgs-2c063fe250e019a44eba31e4f7857d0e35065b5b.tar.zst
nixpkgs-2c063fe250e019a44eba31e4f7857d0e35065b5b.zip
gnomeExtensions: add patch framework
It's like Haskell's overlay system, but way more primitive. We simply pre-define some
package overrides that are required for an automatically packaged extension to work.
Ideally, all (or almost all) currently manually pacakged extensions will work this way.

Since these are mostly just a few lines each, there is no need to split this up into a
lot of small files.
Diffstat (limited to 'pkgs/desktops/gnome/extensions/extensionPatches.nix')
-rw-r--r--pkgs/desktops/gnome/extensions/extensionPatches.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/desktops/gnome/extensions/extensionPatches.nix b/pkgs/desktops/gnome/extensions/extensionPatches.nix
new file mode 100644
index 00000000000..21c75ebf196
--- /dev/null
+++ b/pkgs/desktops/gnome/extensions/extensionPatches.nix
@@ -0,0 +1,14 @@
+{
+  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 // {
+
+}