Change:
Gnome clocks fails to play alarm. Emits following error: (): GStreamer-Play-ERROR **: 05:20:00.109: GstPlay: 'playbin' element not found, please check your setup Trace/breakpoint trap (core dumped) Steps to reproduce the behavior: an alarm for 1 min later and wait. the crash I use Hyprland not gnome. If it is expected for clocks to not work in other desktop environments, I am sorry for the noise. <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. --Please run and paste the result. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
Thanks for reporting. Sounds like we forgot to add GStreamer to buildInputs in the previous bump ( in GNOME 45). It works on GNOME Shell because it leaks GStreamer into environment, masking this issue. The sound theme can be removed.
Please test

Discussion:
<del> { stdenv , lib , fetchurl , meson , ninja , gettext , pkg-config , wrapGAppsHook4 , itstool , desktop-file-utils , vala , libxml2 , gtk4 , glib , sound-theme-freedesktop , gsettings-desktop-schemas , gnome-desktop , geocode-glib_2 , gnome , gdk-pixbuf , geoclue2 , libgweather , libadwaita </del> <ins> { stdenv, lib, fetchurl, meson, ninja, gettext, pkg-config, wrapGAppsHook4, itstool, desktop-file-utils, vala, libxml2, gtk4, glib, gsettings-desktop-schemas, gnome-desktop, geocode-glib_2, gnome, gdk-pixbuf, geoclue2, gst_all_1, libgweather, libadwaita, </ins> }: <del> stdenv.mkDerivation rec { </del> <ins> stdenv.mkDerivation (finalAttrs: { </ins> pname = "gnome-clocks"; version = "46.0"; src = fetchurl { <del> url = "mirror://gnome/sources/gnome-clocks/${lib.versions.major version}/${pname}-${version}.tar.xz"; </del> <ins> url = "mirror://gnome/sources/gnome-clocks/${lib.versions.major finalAttrs.version}/gnome-clocks-${finalAttrs.version}.tar.xz"; </ins> hash = "sha256-6qPFeM3O+XVOZotWJnCbc/NSZxAjX0tyB20v9JpPmcc="; };

libxml2 ]; <del> buildInputs = [ gtk4 glib gsettings-desktop-schemas gdk-pixbuf gnome-desktop geocode-glib_2 geoclue2 libgweather libadwaita ]; preFixup = '' gappsWrapperArgs+=( # Fallback sound theme --prefix XDG_DATA_DIRS : "${sound-theme-freedesktop}/share" ) ''; </del> <ins> buildInputs = [ gtk4 glib gsettings-desktop-schemas gdk-pixbuf gnome-desktop geocode-glib_2 geoclue2 libgweather libadwaita ] ++ (with gst_all_1; [ # GStreamer plugins needed for Alarms gstreamer gst-plugins-base gst-plugins-good ]); </ins> doCheck = true;

}; }; <del> meta = with lib; { </del> <ins> meta = { </ins> homepage = "https://apps.gnome.org/Clocks/"; <del> description = "Clock application designed for GNOME 3"; </del> <ins> description = "A simple and elegant clock application for GNOME"; longDescription = '' A simple and elegant clock application. It includes world clocks, alarms, a stopwatch, and timers. - Show the time in different cities around the world - Set alarms to wake you up - Measure elapsed time with an accurate stopwatch - Set timers to properly cook your food ''; </ins> mainProgram = "gnome-clocks"; <del> maintainers = teams.gnome.members; license = licenses.gpl2Plus; platforms = platforms.unix; </del> <ins> maintainers = lib.teams.gnome.members; license = lib.licenses.gpl2Plus; platforms = lib.platforms.unix; </ins> }; <del> } </del> <ins> }) </ins>