diff options
| author | Michal Sojka <michal.sojka@cvut.cz> | 2023-05-31 09:18:18 +0200 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2023-06-01 15:11:02 +0000 |
| commit | 6ae0534fb959fb74fe85fec4085b39c01d30689f (patch) | |
| tree | db67a81d348d89d60754d2055d698f2f7ff413c3 | |
| parent | Merge pull request #235304 from NixOS/backport-235291-to-release-23.05 (diff) | |
| download | nixpkgs-origin/backport-235148-to-release-23.05.tar.gz | |
isync: add optional support for XOAUTH2 authentication methodorigin/backport-235148-to-release-23.05
(cherry picked from commit 47eda8e00a28e5b09e7c1819f9a7fce5fee013e3)
| -rw-r--r-- | pkgs/tools/networking/isync/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/tools/networking/isync/default.nix b/pkgs/tools/networking/isync/default.nix index d5af78afb66d..ccf32b438434 100644 --- a/pkgs/tools/networking/isync/default.nix +++ b/pkgs/tools/networking/isync/default.nix @@ -1,6 +1,7 @@ { lib, stdenv, fetchurl, pkg-config, perl , openssl, db, cyrus_sasl, zlib , Security +, withCyrusSaslXoauth2 ? true, cyrus-sasl-xoauth2, makeWrapper }: stdenv.mkDerivation rec { @@ -20,10 +21,16 @@ stdenv.mkDerivation rec { ./work-around-unexpected-EOF-error-messages-at-end-of-SSL-connections.patch ]; - nativeBuildInputs = [ pkg-config perl ]; + nativeBuildInputs = [ pkg-config perl ] + ++ lib.optionals withCyrusSaslXoauth2 [ makeWrapper ]; buildInputs = [ openssl db cyrus_sasl zlib ] ++ lib.optionals stdenv.isDarwin [ Security ]; + postInstall = lib.optionalString withCyrusSaslXoauth2 '' + wrapProgram "$out/bin/mbsync" \ + --prefix SASL_PATH : "${lib.makeSearchPath "lib/sasl2" [ cyrus-sasl-xoauth2 ]}" + ''; + meta = with lib; { homepage = "http://isync.sourceforge.net/"; # https://sourceforge.net/projects/isync/ |
