2021-01-15 15:45:37 +01:00
|
|
|
{ lib, stdenv, fetchpatch, fetchFromGitHub, pam, openssl, perl }:
|
2012-06-11 18:45:54 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-12-16 13:11:55 +01:00
|
|
|
pname = "pam_ssh_agent_auth";
|
|
|
|
version = "0.10.4";
|
2012-06-11 18:45:54 +02:00
|
|
|
|
2020-12-16 13:11:55 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jbeverly";
|
|
|
|
repo = "pam_ssh_agent_auth";
|
|
|
|
rev = "pam_ssh_agent_auth-${version}";
|
|
|
|
sha256 = "YD1R8Cox0UoNiuWleKGzWSzxJ5lhDRCB2mZPp9OM6Cs=";
|
2012-06-11 18:45:54 +02:00
|
|
|
};
|
|
|
|
|
2020-12-16 13:11:55 +01:00
|
|
|
ed25519-donna = fetchFromGitHub {
|
|
|
|
owner = "floodyberry";
|
|
|
|
repo = "ed25519-donna";
|
|
|
|
rev = "8757bd4cd209cb032853ece0ce413f122eef212c";
|
|
|
|
sha256 = "ETFpIaWQnlYG8ZuDG2dNjUJddlvibB4ukHquTFn3NZM=";
|
|
|
|
};
|
2017-03-03 09:17:01 +01:00
|
|
|
|
2012-06-11 18:45:54 +02:00
|
|
|
buildInputs = [ pam openssl perl ];
|
|
|
|
|
2020-12-16 13:11:55 +01:00
|
|
|
patches = [
|
|
|
|
# Allow multiple colon-separated authorized keys files to be
|
|
|
|
# specified in the file= option.
|
|
|
|
./multiple-key-files.patch
|
2020-12-30 16:38:10 +01:00
|
|
|
./edcsa-crash-fix.patch
|
2020-12-16 13:11:55 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
# It's not clear to me why this is necessary, but without it, you see:
|
|
|
|
#
|
|
|
|
# checking OpenSSL header version... 1010108f (OpenSSL 1.1.1h 22 Sep 2020)
|
|
|
|
# checking OpenSSL library version... 1010108f (OpenSSL 1.1.1h 22 Sep 2020)
|
|
|
|
# checking whether OpenSSL's headers match the library... no
|
|
|
|
# configure: WARNING: Your OpenSSL headers do not match your
|
|
|
|
# library. Check config.log for details.
|
|
|
|
#
|
|
|
|
# ...despite the fact that clearly the values match
|
|
|
|
"--without-openssl-header-check"
|
|
|
|
# Make sure it can find ed25519-donna
|
|
|
|
"--with-cflags=-I$PWD"
|
|
|
|
];
|
|
|
|
|
|
|
|
prePatch = "cp -r ${ed25519-donna}/. ed25519-donna/.";
|
2020-02-28 21:19:51 +01:00
|
|
|
|
2012-12-17 20:36:07 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2012-06-11 18:45:54 +02:00
|
|
|
meta = {
|
2020-12-16 13:11:55 +01:00
|
|
|
homepage = "https://github.com/jbeverly/pam_ssh_agent_auth";
|
2012-06-11 18:45:54 +02:00
|
|
|
description = "PAM module for authentication through the SSH agent";
|
2021-01-15 15:45:37 +01:00
|
|
|
maintainers = [ lib.maintainers.eelco ];
|
|
|
|
platforms = lib.platforms.linux;
|
2012-06-11 18:45:54 +02:00
|
|
|
};
|
|
|
|
}
|