mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
evolution-data-server: fix gsettings schemas and add dbus service
This commit is contained in:
parent
ea3644cb09
commit
2bc0f7b701
|
@ -97,6 +97,7 @@
|
||||||
./services/databases/virtuoso.nix
|
./services/databases/virtuoso.nix
|
||||||
./services/databases/monetdb.nix
|
./services/databases/monetdb.nix
|
||||||
./services/desktops/accountservice.nix
|
./services/desktops/accountservice.nix
|
||||||
|
./services/desktops/gnome3/evolution-data-server.nix
|
||||||
./services/desktops/gnome3/sushi.nix
|
./services/desktops/gnome3/sushi.nix
|
||||||
./services/games/ghost-one.nix
|
./services/games/ghost-one.nix
|
||||||
./services/games/minecraft-server.nix
|
./services/games/minecraft-server.nix
|
||||||
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
# Evolution Data Server daemon.
|
||||||
|
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
with pkgs.lib;
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
###### interface
|
||||||
|
|
||||||
|
options = {
|
||||||
|
|
||||||
|
services.gnome3.evolution-data-server = {
|
||||||
|
|
||||||
|
enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = ''
|
||||||
|
Whether to enable Evolution Data Server, a collection of services for
|
||||||
|
storing addressbooks and calendars.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
###### implementation
|
||||||
|
|
||||||
|
config = mkIf config.services.gnome3.evolution-data-server.enable {
|
||||||
|
|
||||||
|
environment.systemPackages = [ pkgs.evolution_data_server ];
|
||||||
|
|
||||||
|
services.dbus.packages = [ pkgs.evolution_data_server ];
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
|
@ -23,6 +23,7 @@ in {
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
services.udisks2.enable = true;
|
services.udisks2.enable = true;
|
||||||
services.accounts-daemon.enable = true;
|
services.accounts-daemon.enable = true;
|
||||||
|
services.gnome3.evolution-data-server.enable = true;
|
||||||
services.gnome3.sushi.enable = true;
|
services.gnome3.sushi.enable = true;
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
services.upower.enable = config.powerManagement.enable;
|
services.upower.enable = config.powerManagement.enable;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ fetchurl, stdenv, pkgconfig, gnome3, python, intltool, libsoup, libxml2, libsecret
|
{ fetchurl, stdenv, pkgconfig, gnome3, python, intltool, libsoup, libxml2, libsecret
|
||||||
, p11_kit, db, nspr, nss, libical, gperf, valaSupport ? true, vala }:
|
, p11_kit, db, nspr, nss, libical, gperf, makeWrapper, valaSupport ? true, vala }:
|
||||||
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -12,13 +12,19 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
buildInputs = with gnome3;
|
buildInputs = with gnome3;
|
||||||
[ pkgconfig glib python intltool libsoup libxml2 gtk gnome_online_accounts libsecret
|
[ pkgconfig glib python intltool libsoup libxml2 gtk gnome_online_accounts libsecret
|
||||||
gcr p11_kit db nspr nss libgweather libical libgdata gperf ]
|
gcr p11_kit db nspr nss libgweather libical libgdata gperf makeWrapper ]
|
||||||
++ stdenv.lib.optional valaSupport vala;
|
++ stdenv.lib.optional valaSupport vala;
|
||||||
|
|
||||||
# uoa irrelevant for now
|
# uoa irrelevant for now
|
||||||
configureFlags = ["--disable-uoa" "--with-nspr-includes=${nspr}/include/nspr" "--with-nss-includes=${nss}/include/nss"]
|
configureFlags = ["--disable-uoa" "--with-nspr-includes=${nspr}/include/nspr" "--with-nss-includes=${nss}/include/nss"]
|
||||||
++ stdenv.lib.optional valaSupport "--enable-vala-bindings";
|
++ stdenv.lib.optional valaSupport "--enable-vala-bindings";
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
for f in "$out/libexec/evolution-addressbook-factory" "$out/libexec/evolution-calendar-factory"; do
|
||||||
|
wrapProgram $f --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue