nixpkgs/pkgs/development/libraries/libwnck/default.nix
Bobby Rong 25ee407e34
libwnck: 43.0 → 43.1
https://gitlab.gnome.org/GNOME/libwnck/-/compare/43.0...43.1

Changelog-reviewed-by: Bobby Rong <rjl931189261@126.com>
2024-10-14 20:54:20 +08:00

78 lines
1.3 KiB
Nix

{ stdenv
, lib
, fetchurl
, meson
, mesonEmulatorHook
, ninja
, pkg-config
, gtk-doc
, docbook_xsl
, docbook_xml_dtd_412
, libX11
, glib
, gtk3
, pango
, cairo
, libXres
, libstartup_notification
, gettext
, gobject-introspection
, gnome
}:
stdenv.mkDerivation rec {
pname = "libwnck";
version = "43.1";
outputs = [ "out" "dev" "devdoc" ];
outputBin = "dev";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "Y0tFh7c2ekk9OBjEtXdA2sBhU8+PJc1k9a8WtlfdaEU=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
gettext
gobject-introspection
gtk-doc
docbook_xsl
docbook_xml_dtd_412
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];
buildInputs = [
libX11
libstartup_notification
pango
cairo
libXres
];
propagatedBuildInputs = [
glib
gtk3
];
mesonFlags = [
"-Dgtk_doc=true"
];
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
};
};
meta = with lib; {
description = "Library to manage X windows and workspaces (via pagers, tasklists, etc.)";
license = licenses.lgpl21Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ liff ];
};
}