nixpkgs/pkgs/desktops/gnome-3/core/gnome-desktop/default.nix

62 lines
1.8 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, fetchpatch, substituteAll, pkgconfig, libxslt, ninja, libX11, gnome3, gtk3, glib
, gettext, libxml2, xkeyboard_config, isocodes, meson, wayland
2019-06-24 15:44:08 +01:00
, libseccomp, systemd, bubblewrap, gobject-introspection, gtk-doc, docbook_xsl, gsettings-desktop-schemas }:
stdenv.mkDerivation rec {
pname = "gnome-desktop";
2020-02-20 02:06:16 +00:00
version = "3.34.4";
2018-08-08 02:30:01 +01:00
outputs = [ "out" "dev" "devdoc" ];
src = fetchurl {
url = "mirror://gnome/sources/gnome-desktop/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2020-02-20 02:06:16 +00:00
sha256 = "1g0cvsx0gk65kfa91knkqg7l2isrnlpvqwjbzpr3a5f2girp4gn5";
};
nativeBuildInputs = [
pkgconfig meson ninja gettext libxslt libxml2 gobject-introspection
2018-08-08 02:30:01 +01:00
gtk-doc docbook_xsl
];
2017-12-18 18:49:07 +00:00
buildInputs = [
libX11 bubblewrap xkeyboard_config isocodes wayland
2019-06-24 15:44:08 +01:00
gtk3 glib libseccomp systemd
2017-12-18 18:49:07 +00:00
];
propagatedBuildInputs = [ gsettings-desktop-schemas ];
2017-12-02 05:55:00 +00:00
patches = [
(substituteAll {
src = ./bubblewrap-paths.patch;
bubblewrap_bin = "${bubblewrap}/bin/bwrap";
inherit (builtins) storeDir;
})
# honor $XKB_CONFIG_ROOT
# addresses #76590: services.xserver.extraLayouts aren't honored by GNOME3
# NOTE: should be merged upstream in 3.36.
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/gnome-desktop/commit/450446b5353e8231edded4d5b5db90a67a9fa9b7.diff";
sha256 = "07y989x7mbgn3rsm2qfdi8qkkc8i60k28hw87l744nlkydn78kq5";
})
2017-12-02 05:55:00 +00:00
];
mesonFlags = [
"-Dgtk_doc=true"
"-Ddesktop_docs=false"
2018-08-08 02:30:01 +01:00
];
passthru = {
updateScript = gnome3.updateScript {
packageName = "gnome-desktop";
attrPath = "gnome3.gnome-desktop";
};
};
meta = with stdenv.lib; {
2017-12-18 18:49:07 +00:00
description = "Library with common API for various GNOME modules";
license = with licenses; [ gpl2 lgpl2 ];
platforms = platforms.linux;
maintainers = gnome3.maintainers;
};
}