2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, buildEnv
|
2021-05-20 23:08:51 +00:00
|
|
|
, asio, boost, check, openssl, cmake
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-05-15 21:57:56 +00:00
|
|
|
pname = "mariadb-galera";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "26.4.12";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "codership";
|
|
|
|
repo = "galera";
|
|
|
|
rev = "release_${version}";
|
2022-07-14 12:49:19 +00:00
|
|
|
sha256 = "sha256-1Jw99Eo8xhCNLd2XHm9M6DatzBl0w5VvgUahvKs4glg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = [ asio boost.dev check openssl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
2021-05-20 23:08:51 +00:00
|
|
|
# make sure bundled asio cannot be used, but leave behind license, because it gets installed
|
|
|
|
rm -r asio/{asio,asio.hpp}
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
postInstall = ''
|
|
|
|
# for backwards compatibility
|
|
|
|
mkdir $out/lib/galera
|
|
|
|
ln -s $out/lib/libgalera_smm.so $out/lib/galera/libgalera_smm.so
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Galera 3 wsrep provider library";
|
|
|
|
homepage = "https://galeracluster.com/";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.lgpl2Only;
|
|
|
|
maintainers = with maintainers; [ ajs124 izorkin ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|