push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,138 @@
{
lib,
stdenv,
cmake,
ninja,
intltool,
fetchurl,
libxml2,
webkitgtk_4_1,
highlight,
pkg-config,
gtk3,
glib,
libnotify,
libpst,
gspell,
evolution-data-server,
libgweather,
glib-networking,
gsettings-desktop-schemas,
wrapGAppsHook3,
itstool,
shared-mime-info,
libical,
db,
sqlite,
adwaita-icon-theme,
gnome,
gnome-desktop,
librsvg,
gdk-pixbuf,
libsecret,
nss,
nspr,
icu,
libcanberra-gtk3,
geocode-glib_2,
cmark,
bogofilter,
gst_all_1,
procps,
p11-kit,
openldap,
spamassassin,
}:
stdenv.mkDerivation rec {
pname = "evolution";
version = "3.56.2";
src = fetchurl {
url = "mirror://gnome/sources/evolution/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
hash = "sha256-ff3JrrLasybav9wfhXfE7MEjoS2gAS+MZKcmBlo8Cys=";
};
nativeBuildInputs = [
cmake
intltool
itstool
libxml2
ninja
pkg-config
wrapGAppsHook3
];
buildInputs = [
adwaita-icon-theme
bogofilter
db
evolution-data-server
gdk-pixbuf
glib
glib-networking
gnome-desktop
gsettings-desktop-schemas
gst_all_1.gst-plugins-base
gst_all_1.gstreamer
gtk3
gspell
highlight
icu
libcanberra-gtk3
geocode-glib_2
cmark
libgweather
libical
libnotify
libpst
librsvg
libsecret
nspr
nss
openldap
p11-kit
procps
shared-mime-info
sqlite
webkitgtk_4_1
];
propagatedUserEnvPkgs = [
evolution-data-server
];
cmakeFlags = [
"-DENABLE_AUTOAR=OFF"
"-DENABLE_YTNEF=OFF"
"-DWITH_SPAMASSASSIN=${spamassassin}/bin/spamassassin"
"-DWITH_SA_LEARN=${spamassassin}/bin/sa-learn"
"-DWITH_BOGOFILTER=${bogofilter}/bin/bogofilter"
"-DWITH_OPENLDAP=${openldap}"
];
requiredSystemFeatures = [
"big-parallel"
];
doCheck = true;
passthru = {
updateScript = gnome.updateScript {
packageName = "evolution";
versionPolicy = "odd-unstable";
};
};
PKG_CONFIG_CAMEL_1_2_CAMEL_PROVIDERDIR = "${placeholder "out"}/lib/evolution-data-server/camel-providers";
PKG_CONFIG_LIBEDATASERVERUI_1_2_UIMODULEDIR = "${placeholder "out"}/lib/evolution-data-server/ui-modules";
meta = with lib; {
homepage = "https://gitlab.gnome.org/GNOME/evolution";
description = "Personal information management application that provides integrated mail, calendaring and address book functionality";
mainProgram = "evolution";
teams = [ teams.gnome ];
license = licenses.lgpl2Plus;
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,47 @@
{
lib,
makeWrapper,
symlinkJoin,
evolution-data-server,
plugins,
}:
symlinkJoin {
name = "evolution-with-plugins";
paths = [ evolution-data-server ] ++ plugins;
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
declare -a schemas;
for plugin in ${toString plugins}; do
for schema in $plugin/share/gsettings-schemas/*; do
schemas+=($schema);
done
done
for i in $out/bin/* $out/libexec/**; do
if [ ! -d $i ]; then
echo wrapping $i
wrapProgram $i --set EDS_EXTRA_PREFIXES "${lib.concatStringsSep ":" plugins}" --prefix XDG_DATA_DIRS : "''${schemas[@]}"
fi
done
fixSymlink () {
local link=$1
local target=$(readlink $link);
local newtarget=$(sed "s@${builtins.storeDir}/[^/]*/@$out/@" <<< "$target")
if [[ $target != $newtarget ]] && [[ -d $newtarget ]]; then
echo fixing link to point to $newtarget instead of $target
rm $link
ln -s $newtarget $link
fi
}
fixSymlink $out/share/dbus-1/service
fixSymlink $out/lib/systemd/user
for i in $out/share/dbus-1/services/*.service $out/lib/systemd/user/*.service; do
echo fixing service file $i to point to $out
sed -i "s@${builtins.storeDir}/[^/]*/@$out/@" $i
done
'';
}