2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, substituteAll
|
|
|
|
, pkg-config
|
|
|
|
, libxslt
|
|
|
|
, ninja
|
|
|
|
, gnome
|
|
|
|
, gtk3
|
2022-03-30 09:31:56 +00:00
|
|
|
, gtk4
|
2021-05-20 23:08:51 +00:00
|
|
|
, glib
|
|
|
|
, gettext
|
|
|
|
, libxml2
|
|
|
|
, xkeyboard_config
|
|
|
|
, libxkbcommon
|
|
|
|
, isocodes
|
|
|
|
, meson
|
|
|
|
, wayland
|
|
|
|
, libseccomp
|
|
|
|
, systemd
|
|
|
|
, bubblewrap
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk-doc
|
|
|
|
, docbook-xsl-nons
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-desktop";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "43";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/gnome-desktop/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
2022-10-21 18:38:19 +00:00
|
|
|
sha256 = "sha256-PW4VMxdIYVdZaqOAL4dnZBTFcHOPRQqUoEH+iDVCCmk=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
patches = lib.optionals stdenv.isLinux [
|
2021-05-20 23:08:51 +00:00
|
|
|
(substituteAll {
|
|
|
|
src = ./bubblewrap-paths.patch;
|
|
|
|
bubblewrap_bin = "${bubblewrap}/bin/bwrap";
|
|
|
|
inherit (builtins) storeDir;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
gettext
|
|
|
|
libxslt
|
|
|
|
libxml2
|
|
|
|
gobject-introspection
|
|
|
|
gtk-doc
|
|
|
|
docbook-xsl-nons
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
xkeyboard_config
|
|
|
|
libxkbcommon # for xkbregistry
|
|
|
|
isocodes
|
|
|
|
gtk3
|
2022-03-30 09:31:56 +00:00
|
|
|
gtk4
|
2021-05-20 23:08:51 +00:00
|
|
|
glib
|
2022-08-12 12:06:08 +00:00
|
|
|
] ++ lib.optionals stdenv.isLinux [
|
|
|
|
bubblewrap
|
|
|
|
wayland
|
2021-05-20 23:08:51 +00:00
|
|
|
libseccomp
|
|
|
|
systemd
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dgtk_doc=true"
|
|
|
|
"-Ddesktop_docs=false"
|
2022-08-12 12:06:08 +00:00
|
|
|
] ++ lib.optionals (!stdenv.isLinux) [
|
|
|
|
"-Dsystemd=disabled"
|
|
|
|
"-Dudev=disabled"
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
separateDebugInfo = stdenv.isLinux;
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome.updateScript {
|
|
|
|
packageName = "gnome-desktop";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library with common API for various GNOME modules";
|
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gnome-desktop";
|
|
|
|
license = with licenses; [ gpl2Plus lgpl2Plus ];
|
2022-08-12 12:06:08 +00:00
|
|
|
platforms = platforms.unix;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
};
|
|
|
|
}
|