diff options
author | Netali <me@netali.de> | 2022-07-29 15:40:28 +0200 |
---|---|---|
committer | Netali <me@netali.de> | 2022-08-06 19:39:13 +0200 |
commit | a2ac470fb209e5af789912ebd7c531b6bd32bbf7 (patch) | |
tree | 90bb12d1913b6b0437b2aac970ee6ba2b7e08620 /pkgs/os-specific/linux/libnss-mysql | |
parent | bde80c54db106bf0de020898b7922c0e70476260 (diff) |
libnss-mysql: init at 1.7.1
Diffstat (limited to 'pkgs/os-specific/linux/libnss-mysql')
-rw-r--r-- | pkgs/os-specific/linux/libnss-mysql/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/libnss-mysql/default.nix b/pkgs/os-specific/linux/libnss-mysql/default.nix new file mode 100644 index 0000000000000..77e629b03074d --- /dev/null +++ b/pkgs/os-specific/linux/libnss-mysql/default.nix @@ -0,0 +1,30 @@ +{ lib, stdenv, fetchFromGitHub, autoreconfHook, which, libmysqlclient }: + +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 + ''; + + 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 ]; + }; +} |