571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
42 lines
905 B
Nix
42 lines
905 B
Nix
{ lib
|
|
, nixosTests
|
|
, 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
|
|
'';
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests) auth-mysql;
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|