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-07-14 12:49:19 +00:00
|
|
|
version = "42.3";
|
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-07-14 12:49:19 +00:00
|
|
|
sha256 = "sha256-2lBBC48Z/X53WwDR/g26Z/xeEVHe0pkVjcJd2tw/qKk=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(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 = [
|
|
|
|
bubblewrap
|
|
|
|
xkeyboard_config
|
|
|
|
libxkbcommon # for xkbregistry
|
|
|
|
isocodes
|
|
|
|
wayland
|
|
|
|
gtk3
|
2022-03-30 09:31:56 +00:00
|
|
|
gtk4
|
2021-05-20 23:08:51 +00:00
|
|
|
glib
|
|
|
|
libseccomp
|
|
|
|
systemd
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dgtk_doc=true"
|
|
|
|
"-Ddesktop_docs=false"
|
2021-12-21 02:18:32 +00:00
|
|
|
"-Ddate_in_gnome_version=false"
|
|
|
|
"-Dgnome_distributor=NixOS"
|
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 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
};
|
|
|
|
}
|