2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchurl, pam, openssl, zlib }:
|
2014-02-18 05:15:18 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "duo-unix";
|
2022-07-07 21:43:48 +00:00
|
|
|
version = "1.12.1";
|
2014-02-18 05:15:18 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://dl.duosecurity.com/duo_unix-${version}.tar.gz";
|
2022-07-07 21:43:48 +00:00
|
|
|
sha256 = "sha256-oufVgjJHV4ew50gd529b3MvVtBoebcDUGZUn0rHP4ZE=";
|
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";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = [ lib.maintainers.thoughtpolice ];
|
2014-02-18 05:15:18 +00:00
|
|
|
};
|
|
|
|
}
|