Build isync with oauth2 support natively
This commit is contained in:
parent
ac896b654a
commit
5cd3cb7b2b
|
@ -179,8 +179,6 @@ with pkgs;
|
|||
./modules/monitoring.nix
|
||||
./overlays/nix-direnv.nix
|
||||
./overlays/openconnect-sso.nix
|
||||
./overlays/cyrus-sasl-oauth2.nix
|
||||
./overlays/isync-oauth2.nix
|
||||
./overlays/emacs-vterm.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -2,7 +2,9 @@
|
|||
|
||||
with pkgs;
|
||||
|
||||
{
|
||||
let isync-oauth2 = (isync.override { withCyrusSaslXoauth2 = true; });
|
||||
|
||||
in {
|
||||
# Upgrade Doom Emacs daily
|
||||
systemd.user.services.doom-upgrade = {
|
||||
description = "Upgrade Doom Emacs";
|
||||
|
|
|
@ -73,7 +73,7 @@ in {
|
|||
pdfgrep
|
||||
# Mail stack
|
||||
mu
|
||||
isync-oauth2
|
||||
(isync.override { withCyrusSaslXoauth2 = true; })
|
||||
msmtp
|
||||
# Media
|
||||
gimp
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
{ config, lib, pkgs, inputs, ... }:
|
||||
|
||||
let
|
||||
cyrus-sasl-xoauth2 = with pkgs;
|
||||
stdenv.mkDerivation {
|
||||
name = "cyrus-sasl-xoauth2";
|
||||
src = inputs.cyrus-sasl-xoauth2;
|
||||
nativeBuildInputs =
|
||||
[ autoreconfHook inputs.nixpkgs.legacyPackages."${system}".cyrus_sasl ];
|
||||
};
|
||||
|
||||
in {
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {
|
||||
patched-cyrus-sasl-oauth2 = prev.cyrus_sasl.overrideAttrs (div: rec {
|
||||
postInstall = ''
|
||||
for lib in ${cyrus-sasl-xoauth2}/lib/sasl2/*; do
|
||||
ln -sf $lib $out/lib/sasl2/
|
||||
done
|
||||
'';
|
||||
});
|
||||
})
|
||||
];
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with pkgs;
|
||||
|
||||
{
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {
|
||||
isync-oauth2 = isync.overrideAttrs (div: rec {
|
||||
buildInputs = [ openssl db patched-cyrus-sasl-oauth2 zlib ];
|
||||
});
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue