1{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, postgresql, libgcrypt, pam, libxcrypt }:
2
3stdenv.mkDerivation rec {
4 pname = "pam_pgsql";
5 version = "unstable-2020-05-05";
6
7 src = fetchFromGitHub {
8 owner = "pam-pgsql";
9 repo = "pam-pgsql";
10 rev = "f9fd1e1a0daf754e6764a31db5cbec6f9fc02b3d";
11 sha256 = "1bvddrwyk1479wibyayzc24h62qzfnlbk9qvdhb31yw9yn17gp6k";
12 };
13
14 nativeBuildInputs = [ autoreconfHook pkg-config ];
15 buildInputs = [ libgcrypt pam postgresql libxcrypt ];
16
17 meta = with lib; {
18 description = "Support to authenticate against PostgreSQL for PAM-enabled appliations";
19 homepage = "https://github.com/pam-pgsql/pam-pgsql";
20 license = licenses.gpl2Plus;
21 platforms = platforms.linux;
22 maintainers = with maintainers; [ abbradar ];
23 };
24}