nixpkgs/pkgs/by-name/li/libnss-mysql/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
924 B
Nix
Raw Normal View History

2023-12-02 20:07:31 +00:00
{
lib,
nixosTests,
stdenv,
fetchFromGitHub,
autoreconfHook,
which,
libmysqlclient,
}:
2022-07-29 13:40:28 +00:00
stdenv.mkDerivation rec {
pname = "libnss-mysql";
version = "1.7.1";
src = fetchFromGitHub {
owner = "saknopper";
repo = "libnss-mysql";
rev = "v${version}";
sha256 = "1fhsswa3h2nkhjkyjxxqnj07rlx6bmfvd8j521snimx2jba8h0d6";
};
nativeBuildInputs = [
autoreconfHook
which
];
buildInputs = [ libmysqlclient ];
configureFlags = [ "--sysconfdir=/etc" ];
installFlags = [ "sysconfdir=$(out)/etc" ];
postInstall = ''
rm -r $out/etc
'';
2023-12-02 20:07:31 +00:00
passthru.tests = {
inherit (nixosTests) auth-mysql;
};
2022-07-29 13:40:28 +00:00
meta = with lib; {
description = "MySQL module for the Solaris Nameservice Switch (NSS)";
homepage = "https://github.com/saknopper/libnss-mysql";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ netali ];
};
}