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