diff options
Diffstat (limited to 'pkgs/desktops/gnome/extensions/gsconnect/default.nix')
-rw-r--r-- | pkgs/desktops/gnome/extensions/gsconnect/default.nix | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/pkgs/desktops/gnome/extensions/gsconnect/default.nix b/pkgs/desktops/gnome/extensions/gsconnect/default.nix index b86b295afbcd0..1fd5a51427e0b 100644 --- a/pkgs/desktops/gnome/extensions/gsconnect/default.nix +++ b/pkgs/desktops/gnome/extensions/gsconnect/default.nix @@ -18,11 +18,12 @@ , evolution-data-server-gtk4 , gjs , nixosTests +, desktop-file-utils }: stdenv.mkDerivation rec { pname = "gnome-shell-extension-gsconnect"; - version = "50"; + version = "54"; outputs = [ "out" "installedTests" ]; @@ -30,7 +31,7 @@ stdenv.mkDerivation rec { owner = "GSConnect"; repo = "gnome-shell-extension-gsconnect"; rev = "v${version}"; - hash = "sha256-uUpdjBsVeS99AYDpGlXP9fMqGxWj+XfVubNoGJs76G0="; + hash = "sha256-Dt5T5luuKpSkoOs6MjOBg/yMm52hRfymKBeRklPWy+M="; }; patches = [ @@ -42,12 +43,6 @@ stdenv.mkDerivation rec { # Allow installing installed tests to a separate output ./installed-tests-path.patch - - # Update extension for Nautilus 43. - (fetchpatch { - url = "https://github.com/GSConnect/gnome-shell-extension-gsconnect/commit/9723ea9102f07c2c60fa065184cc58c2bc260abf.patch"; - sha256 = "9afy/70AwW+OYML5J5IyBBiNKWkZ+wZZryZbi4uRfs4="; - }) ]; nativeBuildInputs = [ @@ -56,6 +51,7 @@ stdenv.mkDerivation rec { pkg-config gobject-introspection # for locating typelibs wrapGAppsHook # for wrapping daemons + desktop-file-utils # update-desktop-database ]; buildInputs = [ @@ -69,20 +65,16 @@ stdenv.mkDerivation rec { mesonFlags = [ "-Dgnome_shell_libdir=${gnome.gnome-shell}/lib" - "-Dgsettings_schemadir=${glib.makeSchemaPath (placeholder "out") "${pname}-${version}"}" "-Dchrome_nmhdir=${placeholder "out"}/etc/opt/chrome/native-messaging-hosts" "-Dchromium_nmhdir=${placeholder "out"}/etc/chromium/native-messaging-hosts" "-Dopenssl_path=${openssl}/bin/openssl" "-Dsshadd_path=${openssh}/bin/ssh-add" "-Dsshkeygen_path=${openssh}/bin/ssh-keygen" "-Dsession_bus_services_dir=${placeholder "out"}/share/dbus-1/services" - "-Dpost_install=true" "-Dinstalled_test_prefix=${placeholder "installedTests"}" ]; postPatch = '' - patchShebangs meson/nmh.sh - patchShebangs meson/post-install.sh patchShebangs installed-tests/prepare-tests.sh # TODO: do not include every typelib everywhere @@ -91,6 +83,10 @@ stdenv.mkDerivation rec { substituteInPlace "$file" \ --subst-var-by typelibPath "$GI_TYPELIB_PATH" done + + # slightly janky fix for gsettings_schemadir being removed + substituteInPlace data/config.js.in \ + --subst-var-by GSETTINGS_SCHEMA_DIR ${glib.makeSchemaPath (placeholder "out") "${pname}-${version}"} ''; postFixup = '' |