self: super: rec { mariadb = mariadbPAM; mariadbPAM = super.mariadb.overrideAttrs(old: { cmakeFlags = old.cmakeFlags ++ [ "-DWITH_AUTHENTICATION_PAM=ON" ]; buildInputs = old.buildInputs ++ [ self.pam ]; postInstall = old.postInstall + '' # FIXME: hack because mariadb cannot find dialog.so # fixed in 20.03: https://github.com/NixOS/nixpkgs/pull/80768 ln -s /nix $out/nix cp "$dev"/lib/mysql/plugin/{caching_sha2_password.so,dialog.so,mysql_clear_password.so,sha256_password.so} "$out"/lib/mysql/plugin ''; }) // (with super.mariadb; { inherit client; servier = super.mariadb; inherit connector-c; inherit galera; }); }