2014-02-18 05:15:18 +00:00
|
|
|
{ stdenv, fetchurl, pam, openssl, zlib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-06-17 22:06:31 +00:00
|
|
|
name = "duo-unix-${version}";
|
2017-05-07 16:38:22 +00:00
|
|
|
version = "1.9.20";
|
2014-02-18 05:15:18 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://dl.duosecurity.com/duo_unix-${version}.tar.gz";
|
2017-05-07 16:38:22 +00:00
|
|
|
sha256 = "0zxrpdbgi8k8jbqg5yxjv3b0lz9kpk89pglwb3lqlvzscbxdv5qj";
|
2014-02-18 05:15:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pam openssl zlib ];
|
|
|
|
configureFlags =
|
|
|
|
[ "--with-pam=$(out)/lib/security"
|
|
|
|
"--prefix=$(out)"
|
|
|
|
"--sysconfdir=$(out)/etc/duo"
|
2016-04-16 17:44:32 +00:00
|
|
|
"--with-openssl=${openssl.dev}"
|
2014-03-20 19:05:38 +00:00
|
|
|
"--enable-lib64=no"
|
2014-02-18 05:15:18 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Duo Security Unix login integration";
|
|
|
|
homepage = "https://duosecurity.com";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|