xfce.libxfce4windowing: Move away from mkXfceDerivation

To reduce the diff when build system change comes.
mkXfceDerivation is generally pointless with meson.
This commit is contained in:
Bobby Rong
2025-12-21 22:44:30 +08:00
parent 839648e610
commit 404177e8da
@@ -1,9 +1,12 @@
{
stdenv,
lib,
mkXfceDerivation,
fetchFromGitLab,
gettext,
pkg-config,
python3,
wayland-scanner,
xfce4-dev-tools,
glib,
gtk3,
libdisplay-info,
@@ -18,18 +21,32 @@
&& stdenv.hostPlatform.emulatorAvailable buildPackages,
buildPackages,
gobject-introspection,
gitUpdater,
}:
mkXfceDerivation {
category = "xfce";
stdenv.mkDerivation (finalAttrs: {
pname = "libxfce4windowing";
version = "4.20.4";
sha256 = "sha256-8iLkljuGyJ4giVN5yuOFuTZsrdr8U3avTS/1aRSpaxc=";
outputs = [
"out"
"dev"
];
src = fetchFromGitLab {
domain = "gitlab.xfce.org";
owner = "xfce";
repo = "libxfce4windowing";
tag = "libxfce4windowing-${finalAttrs.version}";
hash = "sha256-8iLkljuGyJ4giVN5yuOFuTZsrdr8U3avTS/1aRSpaxc=";
};
nativeBuildInputs = [
gettext
pkg-config
python3
wayland-scanner
xfce4-dev-tools
]
++ lib.optionals withIntrospection [
gobject-introspection
@@ -51,9 +68,19 @@ mkXfceDerivation {
patchShebangs xdt-gen-visibility
'';
configureFlags = [ "--enable-maintainer-mode" ];
enableParallelBuilding = true;
passthru.updateScript = gitUpdater {
rev-prefix = "libxfce4windowing-";
odd-unstable = true;
};
meta = {
description = "Windowing concept abstraction library for X11 and Wayland";
homepage = "https://gitlab.xfce.org/xfce/libxfce4windowing";
license = lib.licenses.lgpl21Plus;
platforms = lib.platforms.linux;
teams = [ lib.teams.xfce ];
};
}
})