aboutsummaryrefslogtreecommitdiff
path: root/pkgs/cyrus-sasl-xoauth2/default.nix
blob: a7ec5cb9028534467e9f07e5333ab7994dfae175 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
  lib,
  stdenv,
  fetchFromGitHub,
  autoconf,
  automake,
  libtool,
  pkg-config,
  cyrus_sasl,
}:
with lib;
  stdenv.mkDerivation rec {
    pname = "cyrus-sasl-xoauth2";
    version = "0.2";
    src = fetchFromGitHub {
      owner = "moriyoshi";
      repo = "cyrus-sasl-xoauth2";
      rev = "v${version}";
      sha256 = "lI8uKtVxrziQ8q/Ss+QTgg1xTObZUTAzjL3MYmtwyd8=";
    };

    nativeBuildInputs = [
      autoconf
      automake
      libtool
      pkg-config
    ];
    buildInputs = [
      cyrus_sasl
    ];

    preConfigure = ''
      ./autogen.sh
    '';
    installPhase = ''
      make DESTDIR=$out install
    '';
  }