forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / development / libraries / libwnck / default.nix
blob25b2be3db4a29df86d8b0f191417cae7df066154
1 { stdenv
2 , lib
3 , fetchurl
4 , meson
5 , mesonEmulatorHook
6 , ninja
7 , pkg-config
8 , gtk-doc
9 , docbook_xsl
10 , docbook_xml_dtd_412
11 , libX11
12 , glib
13 , gtk3
14 , pango
15 , cairo
16 , libXres
17 , libstartup_notification
18 , gettext
19 , gobject-introspection
20 , gnome
23 stdenv.mkDerivation rec {
24   pname = "libwnck";
25   version = "43.1";
27   outputs = [ "out" "dev" "devdoc" ];
28   outputBin = "dev";
30   src = fetchurl {
31     url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
32     sha256 = "Y0tFh7c2ekk9OBjEtXdA2sBhU8+PJc1k9a8WtlfdaEU=";
33   };
35   nativeBuildInputs = [
36     meson
37     ninja
38     pkg-config
39     gettext
40     gobject-introspection
41     gtk-doc
42     docbook_xsl
43     docbook_xml_dtd_412
44   ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
45     mesonEmulatorHook
46   ];
48   buildInputs = [
49     libX11
50     libstartup_notification
51     pango
52     cairo
53     libXres
54   ];
56   propagatedBuildInputs = [
57     glib
58     gtk3
59   ];
61   mesonFlags = [
62     "-Dgtk_doc=true"
63   ];
65   passthru = {
66     updateScript = gnome.updateScript {
67       packageName = pname;
68     };
69   };
71   meta = with lib; {
72     description = "Library to manage X windows and workspaces (via pagers, tasklists, etc.)";
73     license = licenses.lgpl21Plus;
74     platforms = platforms.linux;
75     maintainers = with maintainers; [ liff ];
76   };