pam_mysql: add test

This commit is contained in:
netali 2023-12-02 21:05:39 +01:00
parent 22b5fecd98
commit ac3352a65c
No known key found for this signature in database
GPG Key ID: 9C55E636426B40A9

View File

@ -1,4 +1,15 @@
{ lib, stdenv, fetchFromGitHub, meson, ninja, pam, pkg-config, libmysqlclient, mariadb, libxcrypt }:
{ lib
, nixosTests
, stdenv
, fetchFromGitHub
, meson
, ninja
, pam
, pkg-config
, libmysqlclient
, mariadb
, libxcrypt
}:
stdenv.mkDerivation rec {
pname = "pam_mysql";
@ -14,6 +25,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ meson pkg-config ninja ];
buildInputs = [ pam libmysqlclient mariadb libxcrypt ];
passthru.tests = {
inherit (nixosTests) auth-mysql;
};
meta = with lib; {
description = "PAM authentication module against a MySQL database";
homepage = "https://github.com/NigelCunningham/pam-MySQL";