summaryrefslogtreecommitdiffstats
path: root/pkgs/desktops/gnome-3/core/gnome-desktop/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/desktops/gnome-3/core/gnome-desktop/default.nix')
-rw-r--r--pkgs/desktops/gnome-3/core/gnome-desktop/default.nix26
1 files changed, 18 insertions, 8 deletions
diff --git a/pkgs/desktops/gnome-3/core/gnome-desktop/default.nix b/pkgs/desktops/gnome-3/core/gnome-desktop/default.nix
index 13f4b1ef6389..e909a356866c 100644
--- a/pkgs/desktops/gnome-3/core/gnome-desktop/default.nix
+++ b/pkgs/desktops/gnome-3/core/gnome-desktop/default.nix
@@ -1,27 +1,26 @@
{ stdenv, fetchurl, pkgconfig, libxslt, which, libX11, gnome3, gtk3, glib
-, intltool, gnome-doc-utils, xkeyboard_config, isocodes, itstool, wayland
-, libseccomp, bubblewrap, gobjectIntrospection }:
+, intltool, libxml2, xkeyboard_config, isocodes, itstool, wayland
+, libseccomp, bubblewrap, gobjectIntrospection, gtk-doc, docbook_xsl }:
stdenv.mkDerivation rec {
name = "gnome-desktop-${version}";
version = "3.28.2";
+ outputs = [ "out" "dev" "devdoc" ];
+
src = fetchurl {
url = "mirror://gnome/sources/gnome-desktop/${gnome3.versionBranch version}/${name}.tar.xz";
sha256 = "0c439hhpfd9axmv4af6fzhibksh69pnn2nnbghbbqqbwy6zqfl30";
};
- passthru = {
- updateScript = gnome3.updateScript { packageName = "gnome-desktop"; attrPath = "gnome3.gnome-desktop"; };
- };
-
- # this should probably be setuphook for glib
+ # TODO: remove with 3.30
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
enableParallelBuilding = true;
nativeBuildInputs = [
- pkgconfig which itstool intltool libxslt gnome-doc-utils gobjectIntrospection
+ pkgconfig which itstool intltool libxslt libxml2 gobjectIntrospection
+ gtk-doc docbook_xsl
];
buildInputs = [
libX11 bubblewrap xkeyboard_config isocodes wayland
@@ -34,11 +33,22 @@ stdenv.mkDerivation rec {
./bubblewrap-paths.patch
];
+ configureFlags = [
+ "--enable-gtk-doc"
+ ];
+
postPatch = ''
substituteInPlace libgnome-desktop/gnome-desktop-thumbnail-script.c --subst-var-by \
BUBBLEWRAP_BIN "${bubblewrap}/bin/bwrap"
'';
+ passthru = {
+ updateScript = gnome3.updateScript {
+ packageName = "gnome-desktop";
+ attrPath = "gnome3.gnome-desktop";
+ };
+ };
+
meta = with stdenv.lib; {
description = "Library with common API for various GNOME modules";
license = with licenses; [ gpl2 lgpl2 ];