pam_mysql: add test
This commit is contained in:
parent
22b5fecd98
commit
ac3352a65c
1 changed files with 16 additions and 1 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue