2017-12-18 18:49:07 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libxslt, which, libX11, gnome3, gtk3, glib
|
|
|
|
, intltool, gnome_doc_utils, xkeyboard_config, isocodes, itstool, wayland
|
2017-12-02 05:55:00 +00:00
|
|
|
, libseccomp, bubblewrap, gobjectIntrospection }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
inherit (import ./src.nix fetchurl) name src;
|
|
|
|
|
|
|
|
# this should probably be setuphook for glib
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-12-02 04:49:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig which itstool intltool libxslt gnome_doc_utils gobjectIntrospection
|
|
|
|
];
|
2017-12-18 18:49:07 +00:00
|
|
|
buildInputs = [
|
|
|
|
libX11 bubblewrap xkeyboard_config isocodes wayland
|
|
|
|
gtk3 glib libseccomp
|
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ gnome3.gsettings_desktop_schemas ];
|
|
|
|
|
2017-12-02 05:55:00 +00:00
|
|
|
patches = [
|
|
|
|
./bubblewrap-paths.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace libgnome-desktop/gnome-desktop-thumbnail-script.c --subst-var-by \
|
|
|
|
BUBBLEWRAP_BIN "${bubblewrap}/bin/bwrap"
|
|
|
|
'';
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-12-18 18:49:07 +00:00
|
|
|
description = "Library with common API for various GNOME modules";
|
|
|
|
license = with licenses; [ gpl2 lgpl2 ];
|
2016-09-18 20:35:23 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
};
|
|
|
|
}
|