2017-12-18 19:49:07 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libxslt, which, libX11, gnome3, gtk3, glib
|
2018-08-08 03:30:01 +02:00
|
|
|
, intltool, libxml2, xkeyboard_config, isocodes, itstool, wayland
|
|
|
|
, libseccomp, bubblewrap, gobjectIntrospection, gtk-doc, docbook_xsl }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 21:07:20 +01:00
|
|
|
name = "gnome-desktop-${version}";
|
2018-05-19 16:54:45 +02:00
|
|
|
version = "3.28.2";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
2018-08-08 03:30:01 +02:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
|
2018-02-25 21:07:20 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/gnome-desktop/${gnome3.versionBranch version}/${name}.tar.xz";
|
2018-05-19 16:54:45 +02:00
|
|
|
sha256 = "0c439hhpfd9axmv4af6fzhibksh69pnn2nnbghbbqqbwy6zqfl30";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
2018-08-08 03:30:01 +02:00
|
|
|
# TODO: remove with 3.30
|
2016-09-18 21:35:23 +02:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-12-02 05:49:41 +01:00
|
|
|
nativeBuildInputs = [
|
2018-08-08 03:30:01 +02:00
|
|
|
pkgconfig which itstool intltool libxslt libxml2 gobjectIntrospection
|
|
|
|
gtk-doc docbook_xsl
|
2017-12-02 05:49:41 +01:00
|
|
|
];
|
2017-12-18 19:49:07 +01:00
|
|
|
buildInputs = [
|
|
|
|
libX11 bubblewrap xkeyboard_config isocodes wayland
|
|
|
|
gtk3 glib libseccomp
|
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-02-25 03:23:58 +01:00
|
|
|
propagatedBuildInputs = [ gnome3.gsettings-desktop-schemas ];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2017-12-02 06:55:00 +01:00
|
|
|
patches = [
|
|
|
|
./bubblewrap-paths.patch
|
|
|
|
];
|
|
|
|
|
2018-08-08 03:30:01 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-gtk-doc"
|
|
|
|
];
|
|
|
|
|
2017-12-02 06:55:00 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace libgnome-desktop/gnome-desktop-thumbnail-script.c --subst-var-by \
|
|
|
|
BUBBLEWRAP_BIN "${bubblewrap}/bin/bwrap"
|
|
|
|
'';
|
|
|
|
|
2018-08-08 03:30:01 +02:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "gnome-desktop";
|
|
|
|
attrPath = "gnome3.gnome-desktop";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
meta = with stdenv.lib; {
|
2017-12-18 19:49:07 +01:00
|
|
|
description = "Library with common API for various GNOME modules";
|
|
|
|
license = with licenses; [ gpl2 lgpl2 ];
|
2016-09-18 21:35:23 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
};
|
|
|
|
}
|