nixpkgs/pkgs/tools/security/duo-unix/default.nix

29 lines
758 B
Nix
Raw Normal View History

2021-01-15 09:19:50 +00:00
{ lib, stdenv, fetchurl, pam, openssl, zlib }:
stdenv.mkDerivation rec {
pname = "duo-unix";
2022-07-07 21:43:48 +00:00
version = "1.12.1";
src = fetchurl {
url = "https://dl.duosecurity.com/duo_unix-${version}.tar.gz";
2022-07-07 21:43:48 +00:00
sha256 = "sha256-oufVgjJHV4ew50gd529b3MvVtBoebcDUGZUn0rHP4ZE=";
};
buildInputs = [ pam openssl zlib ];
configureFlags =
[ "--with-pam=$(out)/lib/security"
"--prefix=$(out)"
"--sysconfdir=$(out)/etc/duo"
"--with-openssl=${openssl.dev}"
"--enable-lib64=no"
];
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 ];
};
}