2021-01-15 01:19:50 -08:00
|
|
|
{ lib, stdenv, fetchurl, pam, openssl, zlib }:
|
2014-02-17 21:15:18 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "duo-unix";
|
2020-05-21 00:30:30 -07:00
|
|
|
version = "1.11.4";
|
2014-02-17 21:15:18 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://dl.duosecurity.com/duo_unix-${version}.tar.gz";
|
2020-05-21 00:30:30 -07:00
|
|
|
sha256 = "1hqklf6jzrxn5hgh69bbl6962hwwgf06dlrb0ry7n5iy8w8imnsg";
|
2014-02-17 21:15:18 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pam openssl zlib ];
|
|
|
|
configureFlags =
|
|
|
|
[ "--with-pam=$(out)/lib/security"
|
|
|
|
"--prefix=$(out)"
|
|
|
|
"--sysconfdir=$(out)/etc/duo"
|
2016-04-16 10:44:32 -07:00
|
|
|
"--with-openssl=${openssl.dev}"
|
2014-03-20 12:05:38 -07:00
|
|
|
"--enable-lib64=no"
|
2014-02-17 21:15:18 -08:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Duo Security Unix login integration";
|
|
|
|
homepage = "https://duosecurity.com";
|
2021-01-15 01:19:50 -08:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = [ lib.maintainers.thoughtpolice ];
|
2014-02-17 21:15:18 -08:00
|
|
|
};
|
|
|
|
}
|