2021-01-19 09:50:56 +03:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, postgresql, libgcrypt, pam }:
|
2015-10-19 13:29:34 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "pam_pgsql";
|
2022-01-08 13:29:42 +03:00
|
|
|
version = "unstable-2020-05-05";
|
2015-10-19 13:29:34 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pam-pgsql";
|
|
|
|
repo = "pam-pgsql";
|
2022-01-08 13:29:42 +03:00
|
|
|
rev = "f9fd1e1a0daf754e6764a31db5cbec6f9fc02b3d";
|
|
|
|
sha256 = "1bvddrwyk1479wibyayzc24h62qzfnlbk9qvdhb31yw9yn17gp6k";
|
2015-10-19 13:29:34 +03:00
|
|
|
};
|
|
|
|
|
2021-01-19 09:50:56 +03:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2015-10-19 13:29:34 +03:00
|
|
|
buildInputs = [ libgcrypt pam postgresql ];
|
|
|
|
|
2021-01-11 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2015-10-19 13:29:34 +03:00
|
|
|
description = "Support to authenticate against PostgreSQL for PAM-enabled appliations";
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://github.com/pam-pgsql/pam-pgsql";
|
2015-10-19 13:29:34 +03:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|