2017-07-24 05:24:11 +01:00
|
|
|
{ fetchurl, stdenv, pkgconfig, gnome3, python, dconf
|
2016-09-18 20:35:23 +01:00
|
|
|
, intltool, libsoup, libxml2, libsecret, icu, sqlite
|
2017-06-25 17:59:23 +01:00
|
|
|
, p11_kit, db, nspr, nss, libical, gperf, makeWrapper, valaSupport ? true,
|
|
|
|
vala_0_32, cmake, kerberos, openldap, webkitgtk, libaccounts-glib }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
inherit (import ./src.nix fetchurl) name src;
|
|
|
|
|
|
|
|
buildInputs = with gnome3;
|
2017-06-25 17:59:23 +01:00
|
|
|
[ pkgconfig glib python intltool libsoup libxml2 gtk gnome_online_accounts
|
|
|
|
(stdenv.lib.getLib dconf) gcr p11_kit libgweather libgdata gperf makeWrapper
|
|
|
|
icu sqlite gsettings_desktop_schemas cmake kerberos openldap webkitgtk
|
|
|
|
libaccounts-glib ]
|
2016-09-18 20:35:23 +01:00
|
|
|
++ stdenv.lib.optional valaSupport vala_0_32;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ libsecret nss nspr libical db ];
|
|
|
|
|
|
|
|
# uoa irrelevant for now
|
2017-09-03 23:20:06 +01:00
|
|
|
cmakeFlags = [ "-DENABLE_UOA=OFF" ]
|
2017-06-25 17:59:23 +01:00
|
|
|
++ stdenv.lib.optionals valaSupport [
|
|
|
|
"-DENABLE_VALA_BINDINGS=ON" "-DENABLE_INTROSPECTION=ON"
|
|
|
|
"-DCMAKE_SKIP_BUILD_RPATH=OFF" ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2016-10-03 21:04:02 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
preFixup = ''
|
2017-08-09 22:35:09 +01:00
|
|
|
for f in $(find $out/libexec/ -type f -executable); do
|
2017-07-24 05:24:11 +01:00
|
|
|
wrapProgram "$f" \
|
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \
|
|
|
|
--prefix GIO_EXTRA_MODULES : "${stdenv.lib.getLib dconf}/lib/gio/modules"
|
2016-09-18 20:35:23 +01:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|