2021-03-21 06:47:42 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, substituteAll
|
|
|
|
, pkg-config
|
|
|
|
, libxslt
|
|
|
|
, ninja
|
2021-05-07 22:18:14 +01:00
|
|
|
, gnome
|
2021-03-21 06:47:42 +00:00
|
|
|
, gtk3
|
2022-02-16 18:34:35 +00:00
|
|
|
, gtk4
|
2021-03-21 06:47:42 +00:00
|
|
|
, glib
|
|
|
|
, gettext
|
|
|
|
, libxml2
|
|
|
|
, xkeyboard_config
|
|
|
|
, libxkbcommon
|
|
|
|
, isocodes
|
|
|
|
, meson
|
|
|
|
, wayland
|
|
|
|
, libseccomp
|
|
|
|
, systemd
|
|
|
|
, bubblewrap
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk-doc
|
|
|
|
, docbook-xsl-nons
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
}:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gnome-desktop";
|
2022-03-20 19:54:34 +00:00
|
|
|
version = "42.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
2018-08-08 02:30:01 +01:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
|
2018-02-25 20:07:20 +00:00
|
|
|
src = fetchurl {
|
2021-03-21 06:47:42 +00:00
|
|
|
url = "mirror://gnome/sources/gnome-desktop/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
2022-03-20 19:54:34 +00:00
|
|
|
sha256 = "sha256-88qik6Xob2zK0Y+BcnPbHGcGHmgNedg5qop1KOW7JtY=";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2017-12-02 05:55:00 +00:00
|
|
|
patches = [
|
2018-08-12 13:28:18 +01:00
|
|
|
(substituteAll {
|
|
|
|
src = ./bubblewrap-paths.patch;
|
2018-11-17 15:06:27 +00:00
|
|
|
bubblewrap_bin = "${bubblewrap}/bin/bwrap";
|
2019-02-25 19:04:28 +00:00
|
|
|
inherit (builtins) storeDir;
|
|
|
|
})
|
2017-12-02 05:55:00 +00:00
|
|
|
];
|
|
|
|
|
2021-03-21 06:47:42 +00:00
|
|
|
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-02-16 18:34:35 +00:00
|
|
|
gtk4
|
2021-03-21 06:47:42 +00:00
|
|
|
glib
|
|
|
|
libseccomp
|
|
|
|
systemd
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
];
|
|
|
|
|
2019-03-03 18:23:52 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dgtk_doc=true"
|
|
|
|
"-Ddesktop_docs=false"
|
2021-12-19 19:04:52 +00:00
|
|
|
"-Ddate_in_gnome_version=false"
|
2021-12-19 19:12:12 +00:00
|
|
|
"-Dgnome_distributor=NixOS"
|
2018-08-08 02:30:01 +01:00
|
|
|
];
|
|
|
|
|
2021-03-21 06:47:42 +00:00
|
|
|
separateDebugInfo = stdenv.isLinux;
|
|
|
|
|
2018-08-08 02:30:01 +01:00
|
|
|
passthru = {
|
2021-05-07 22:18:14 +01:00
|
|
|
updateScript = gnome.updateScript {
|
2018-08-08 02:30:01 +01:00
|
|
|
packageName = "gnome-desktop";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-12-18 18:49:07 +00:00
|
|
|
description = "Library with common API for various GNOME modules";
|
2021-03-21 06:47:42 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gnome-desktop";
|
|
|
|
license = with licenses; [ gpl2Plus lgpl2Plus ];
|
2016-09-18 20:35:23 +01:00
|
|
|
platforms = platforms.linux;
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
}
|