From c8faadaf0b75e6af75b2f66705f3d6d8bbee03ca Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Mon, 7 Nov 2022 01:02:24 +0100 Subject: [PATCH] cyrus-sasl-xoauth2: init at 0.2 --- .../libraries/cyrus-sasl-xoauth2/default.nix | 31 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/libraries/cyrus-sasl-xoauth2/default.nix diff --git a/pkgs/development/libraries/cyrus-sasl-xoauth2/default.nix b/pkgs/development/libraries/cyrus-sasl-xoauth2/default.nix new file mode 100644 index 000000000000..bc81574a0cdf --- /dev/null +++ b/pkgs/development/libraries/cyrus-sasl-xoauth2/default.nix @@ -0,0 +1,31 @@ +{ lib, stdenv, fetchFromGitHub, autoconf, libtool, automake, cyrus_sasl }: + +stdenv.mkDerivation rec { + pname = "cyrus-sasl-xoauth2"; + version = "0.2"; + + src = fetchFromGitHub { + owner = "moriyoshi"; + repo = "cyrus-sasl-xoauth2"; + rev = "v${version}"; + sha256 = "sha256-lI8uKtVxrziQ8q/Ss+QTgg1xTObZUTAzjL3MYmtwyd8="; + }; + + nativeBuildInputs = [ autoconf libtool automake ]; + + buildInputs = [ cyrus_sasl ]; + + preConfigure = "./autogen.sh"; + + configureFlags = [ + "--with-cyrus-sasl=${placeholder "out"}" + ]; + + meta = with lib; { + homepage = "https://github.com/moriyoshi/cyrus-sasl-xoauth2"; + description = "XOAUTH2 mechanism plugin for cyrus-sasl"; + platforms = platforms.unix; + license = licenses.mit; + maintainers = with lib.maintainers; [ wentasah ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ef335956c6ec..0f6f3581239d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18439,6 +18439,8 @@ with pkgs; openssl = openssl_1_1; }; + cyrus-sasl-xoauth2 = callPackage ../development/libraries/cyrus-sasl-xoauth2 { }; + # Make bdb5 the default as it is the last release under the custom # bsd-like license db = db5;