diff --git a/pkgs/desktops/xfce/applications/xfce4-notifyd/default.nix b/pkgs/desktops/xfce/applications/xfce4-notifyd/default.nix index 6a24099dd482..d046c546c25d 100644 --- a/pkgs/desktops/xfce/applications/xfce4-notifyd/default.nix +++ b/pkgs/desktops/xfce/applications/xfce4-notifyd/default.nix @@ -1,6 +1,12 @@ { + stdenv, lib, - mkXfceDerivation, + fetchFromGitLab, + gettext, + meson, + ninja, + pkg-config, + wrapGAppsHook3, dbus, glib, gtk3, @@ -11,17 +17,34 @@ libxfce4ui, libxfce4util, sqlite, + systemd, xfce4-panel, xfconf, + gitUpdater, }: -mkXfceDerivation { - category = "apps"; +stdenv.mkDerivation (finalAttrs: { pname = "xfce4-notifyd"; version = "0.9.7"; - odd-unstable = false; - sha256 = "sha256-pgdoy3mZOGMOBwK/cYEl8fre4fZo2lfyWzZnrSYlQ64="; + src = fetchFromGitLab { + domain = "gitlab.xfce.org"; + owner = "apps"; + repo = "xfce4-notifyd"; + tag = "xfce4-notifyd-${finalAttrs.version}"; + hash = "sha256-pgdoy3mZOGMOBwK/cYEl8fre4fZo2lfyWzZnrSYlQ64="; + }; + + strictDeps = true; + + nativeBuildInputs = [ + gettext + glib # glib-genmarshal + meson + ninja + pkg-config + wrapGAppsHook3 + ]; buildInputs = [ dbus @@ -34,18 +57,21 @@ mkXfceDerivation { libxfce4ui libxfce4util sqlite + systemd xfce4-panel xfconf ]; - configureFlags = [ - "--enable-dbus-start-daemon" - "--enable-sound" - ]; + passthru.updateScript = gitUpdater { + rev-prefix = "xfce4-notifyd-"; + }; meta = { description = "Simple notification daemon for Xfce"; + homepage = "https://gitlab.xfce.org/apps/xfce4-notifyd"; + license = lib.licenses.gpl2Plus; mainProgram = "xfce4-notifyd-config"; + platforms = lib.platforms.linux; teams = [ lib.teams.xfce ]; }; -} +})