gnomeExtensions.gsconnect: use finalAttrs

This commit is contained in:
Doron Behar 2025-08-09 22:25:28 +03:00
parent fd6649a374
commit ea703a07b9

View File

@ -21,7 +21,7 @@
desktop-file-utils, desktop-file-utils,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "gnome-shell-extension-gsconnect"; pname = "gnome-shell-extension-gsconnect";
version = "62"; version = "62";
@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "GSConnect"; owner = "GSConnect";
repo = "gnome-shell-extension-gsconnect"; repo = "gnome-shell-extension-gsconnect";
rev = "v${version}"; rev = "v${finalAttrs.version}";
hash = "sha256-HFm04XC61AjkJSt4YBc4dO9v563w+LsYDSaZckPYE14="; hash = "sha256-HFm04XC61AjkJSt4YBc4dO9v563w+LsYDSaZckPYE14=";
}; };
@ -88,7 +88,8 @@ stdenv.mkDerivation rec {
# slightly janky fix for gsettings_schemadir being removed # slightly janky fix for gsettings_schemadir being removed
substituteInPlace data/config.js.in \ substituteInPlace data/config.js.in \
--subst-var-by GSETTINGS_SCHEMA_DIR ${glib.makeSchemaPath (placeholder "out") "${pname}-${version}"} --subst-var-by GSETTINGS_SCHEMA_DIR \
${glib.makeSchemaPath (placeholder "out") "${finalAttrs.pname}-${finalAttrs.version}"}
''; '';
postFixup = '' postFixup = ''
@ -124,4 +125,4 @@ stdenv.mkDerivation rec {
teams = [ lib.teams.gnome ]; teams = [ lib.teams.gnome ];
platforms = lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} })