lol
1{ lib, stdenv, fetchFromGitHub, autoreconfHook, which, libmysqlclient }:
2
3stdenv.mkDerivation rec {
4 pname = "libnss-mysql";
5 version = "1.7.1";
6
7 src = fetchFromGitHub {
8 owner = "saknopper";
9 repo = "libnss-mysql";
10 rev = "v${version}";
11 sha256 = "1fhsswa3h2nkhjkyjxxqnj07rlx6bmfvd8j521snimx2jba8h0d6";
12 };
13
14 nativeBuildInputs = [ autoreconfHook which ];
15 buildInputs = [ libmysqlclient ];
16
17 configureFlags = [ "--sysconfdir=/etc" ];
18 installFlags = [ "sysconfdir=$(out)/etc" ];
19 postInstall = ''
20 rm -r $out/etc
21 '';
22
23 meta = with lib; {
24 description = "MySQL module for the Solaris Nameservice Switch (NSS)";
25 homepage = "https://github.com/saknopper/libnss-mysql";
26 license = licenses.gpl2Plus;
27 platforms = platforms.linux;
28 maintainers = with maintainers; [ netali ];
29 };
30}