Bobby Rong 2025-07-15 00:02:53 +08:00
parent 9807714d69
commit 46f1252020
No known key found for this signature in database

View File

@ -1,6 +1,15 @@
{ {
mkXfceDerivation, stdenv,
gobject-introspection, lib,
fetchFromGitLab,
docbook_xml_dtd_412,
docbook-xsl-ns,
gettext,
meson,
ninja,
pkg-config,
wrapGAppsHook3,
xmlto,
dbus-glib, dbus-glib,
garcon, garcon,
glib, glib,
@ -17,22 +26,37 @@
systemd, systemd,
xfconf, xfconf,
xfdesktop, xfdesktop,
lib, gitUpdater,
}: }:
let let
# For xfce4-screensaver-configure # For xfce4-screensaver-configure
pythonEnv = python3.withPackages (pp: [ pp.pygobject3 ]); pythonEnv = python3.withPackages (pp: [ pp.pygobject3 ]);
in in
mkXfceDerivation { stdenv.mkDerivation (finalAttrs: {
category = "apps";
pname = "xfce4-screensaver"; pname = "xfce4-screensaver";
version = "4.18.4"; version = "4.20.0";
sha256 = "sha256-vkxkryi7JQg1L/JdWnO9qmW6Zx6xP5Urq4kXMe7Iiyc="; src = fetchFromGitLab {
domain = "gitlab.xfce.org";
owner = "apps";
repo = "xfce4-screensaver";
tag = "xfce4-screensaver-${finalAttrs.version}";
hash = "sha256-Pt7Rl+WlR2D4KC6GTXjQhs3yirrUgUG5XkKXnyaJZbo=";
};
strictDeps = true;
nativeBuildInputs = [ nativeBuildInputs = [
gobject-introspection docbook_xml_dtd_412
docbook-xsl-ns
gettext
glib # glib-compile-resources
meson
ninja
pkg-config
wrapGAppsHook3
xmlto
]; ];
buildInputs = [ buildInputs = [
@ -53,18 +77,20 @@ mkXfceDerivation {
xfconf xfconf
]; ];
configureFlags = [ "--without-console-kit" ];
makeFlags = [ "DBUS_SESSION_SERVICE_DIR=$(out)/etc" ];
preFixup = '' preFixup = ''
# For default wallpaper. # For default wallpaper.
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${xfdesktop}/share") gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${xfdesktop}/share")
''; '';
meta = with lib; { passthru.updateScript = gitUpdater { rev-prefix = "xfce4-screensaver-"; };
meta = {
homepage = "https://gitlab.xfce.org/apps/xfce4-screensaver";
description = "Screensaver for Xfce"; description = "Screensaver for Xfce";
maintainers = with maintainers; [ symphorien ]; license = lib.licenses.gpl2Plus;
teams = [ teams.xfce ]; mainProgram = "xfce4-screensaver";
maintainers = with lib.maintainers; [ symphorien ];
teams = [ lib.teams.xfce ];
platforms = lib.platforms.linux;
}; };
} })