1{
2 stdenv,
3 lib,
4 fetchFromGitLab,
5 autoreconfHook,
6 docbook_xsl,
7 libxslt,
8 meson,
9 pkg-config,
10 wrapGAppsHook3,
11 python3,
12 autoconf,
13 automake,
14 glib,
15 gtk-doc,
16 libtool,
17 intltool,
18 gitUpdater,
19}:
20
21stdenv.mkDerivation (finalAttrs: {
22 pname = "xfce4-dev-tools";
23 version = "4.20.0";
24
25 src = fetchFromGitLab {
26 domain = "gitlab.xfce.org";
27 owner = "xfce";
28 repo = "xfce4-dev-tools";
29 rev = "xfce4-dev-tools-${finalAttrs.version}";
30 hash = "sha256-eUfNa/9ksLCKtVwBRtHaVl7Yl95tukUaDdoLNfeR+Ew=";
31 };
32
33 nativeBuildInputs = [
34 autoreconfHook
35 docbook_xsl
36 libxslt # for xsltproc
37 # x-d-t itself is not a meson project, but the xfce-do-release script wants
38 # `meson rewrite kwargs`, thus this is checked by `AC_CHECK_PROGS`.
39 meson
40 pkg-config
41 wrapGAppsHook3
42 ];
43
44 buildInputs = [
45 python3 # for xdt-gen-visibility
46 ];
47
48 propagatedBuildInputs = [
49 autoconf
50 automake
51 glib
52 gtk-doc
53 intltool
54 libtool
55 ];
56
57 dontUseMesonConfigure = true;
58 configureFlags = [ "--enable-maintainer-mode" ];
59
60 enableParallelBuilding = true;
61
62 setupHook = ./setup-hook.sh;
63
64 passthru.updateScript = gitUpdater {
65 rev-prefix = "xfce4-dev-tools-";
66 odd-unstable = true;
67 };
68
69 meta = with lib; {
70 homepage = "https://gitlab.xfce.org/xfce/xfce4-dev-tools";
71 description = "Autoconf macros and scripts to augment app build systems";
72 license = licenses.gpl2Plus;
73 teams = [ teams.xfce ];
74 platforms = platforms.linux;
75 };
76})