gnome: fix two extensions broken by the GNOME 49 -> 50 bump

Tracking nixos-26.05 moved GNOME Shell from 49 to 50, and the shell
hard-disables any extension whose metadata.json shell-version array
lacks the running major. Two enabled extensions were left OUT OF DATE,
for different reasons:

- logomenu@aryan_k was pinned to the v38 zip only because the
  custom-menu patch was written against v38. nixpkgs 26.05 already
  ships v41, which supports shell 50, and the patch applies to it
  cleanly. Drop the version/src pin and keep the override patch-only.

- all-in-one-clipboard is still packaged as v19 (shell <=49) on the
  nixos-26.05 branch; the shell-50 build (v30) landed in unstable and
  was never backported. Pin src to the v30 zip until it is.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ABzc7ivGbjKRCASa8uEkjd
This commit is contained in:
randogoth 2026-08-31 20:20:04 +03:00
parent 9f28569fef
commit eb9d7fb9b8

View file

@ -2,13 +2,18 @@
let let
logoMenuExtension = pkgs.gnomeExtensions.logo-menu.overrideAttrs (old: { logoMenuExtension = pkgs.gnomeExtensions.logo-menu.overrideAttrs (old: {
version = "38"; patches = (old.patches or [ ]) ++ [ ./patches/logo-menu-custom-menu.patch ];
});
# nixos-26.05 still packages v19, which caps out at GNOME Shell 49; the
# shell-50 build landed only in nixpkgs unstable. Drop once 26.05 backports it.
aioClipboardExtension = pkgs.gnomeExtensions.all-in-one-clipboard.overrideAttrs (_: {
version = "30";
src = pkgs.fetchzip { src = pkgs.fetchzip {
url = "https://extensions.gnome.org/extension-data/logomenuaryan_k.v38.shell-extension.zip"; url = "https://extensions.gnome.org/extension-data/all-in-one-clipboardNiffirgkcaJ.github.com.v30.shell-extension.zip";
hash = "sha256-GdGn7YKfOOEM0kV1Gd9H5c1KKjs/+/4XCsxO2pFdqu4="; hash = "sha256-zESXhXVWVttjAN/75zNfF7u7uJKGMARpilBgYkkpMWs=";
stripRoot = false; stripRoot = false;
}; };
patches = (old.patches or [ ]) ++ [ ./patches/logo-menu-custom-menu.patch ];
}); });
in in
{ {
@ -99,7 +104,7 @@ in
pkgs.papirus-icon-theme pkgs.papirus-icon-theme
pkgs.file-roller pkgs.file-roller
pkgs.unrar pkgs.unrar
pkgs.gnomeExtensions.all-in-one-clipboard aioClipboardExtension
pkgs.gnomeExtensions.alphabetical-app-grid pkgs.gnomeExtensions.alphabetical-app-grid
pkgs.gnomeExtensions.app-hider pkgs.gnomeExtensions.app-hider
pkgs.gnomeExtensions.apps pkgs.gnomeExtensions.apps