nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 51 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 pkg-config, 7 libpq, 8 libgcrypt, 9 pam, 10 libxcrypt, 11 unstableGitUpdater, 12 nixosTests, 13}: 14 15stdenv.mkDerivation { 16 pname = "pam-pgsql"; 17 version = "0-unstable-2025-01-24"; 18 19 src = fetchFromGitHub { 20 owner = "pam-pgsql"; 21 repo = "pam-pgsql"; 22 rev = "7834ce21c4f633e3eadc9abe86fa02991efc43ed"; 23 hash = "sha256-hBkDEYZ8RBHav3tqDOD2uQ9m3U95wi4U9ebyQPqd5bo="; 24 }; 25 26 nativeBuildInputs = [ 27 autoreconfHook 28 pkg-config 29 libpq.pg_config 30 ]; 31 32 buildInputs = [ 33 libgcrypt 34 pam 35 libpq 36 libxcrypt 37 ]; 38 39 passthru = { 40 updateScript = unstableGitUpdater { hardcodeZeroVersion = true; }; 41 tests = { inherit (nixosTests) pam-pgsql; }; 42 }; 43 44 meta = { 45 description = "Support to authenticate against PostgreSQL for PAM-enabled applications"; 46 homepage = "https://github.com/pam-pgsql/pam-pgsql"; 47 license = lib.licenses.gpl2Plus; 48 platforms = lib.platforms.linux; 49 maintainers = with lib.maintainers; [ moraxyc ]; 50 }; 51}