ca5ab3a501
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
39 lines
1,008 B
Nix
39 lines
1,008 B
Nix
{ lib, stdenv, fetchFromGitHub, buildEnv
|
|
, asio, boost, check, openssl, cmake
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mariadb-galera";
|
|
version = "26.4.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "codership";
|
|
repo = "galera";
|
|
rev = "release_${version}";
|
|
sha256 = "sha256-1Jw99Eo8xhCNLd2XHm9M6DatzBl0w5VvgUahvKs4glg=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ asio boost.dev check openssl ];
|
|
|
|
preConfigure = ''
|
|
# make sure bundled asio cannot be used, but leave behind license, because it gets installed
|
|
rm -r asio/{asio,asio.hpp}
|
|
'';
|
|
|
|
postInstall = ''
|
|
# for backwards compatibility
|
|
mkdir $out/lib/galera
|
|
ln -s $out/lib/libgalera_smm.so $out/lib/galera/libgalera_smm.so
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Galera 3 wsrep provider library";
|
|
homepage = "https://galeracluster.com/";
|
|
license = licenses.lgpl2Only;
|
|
maintainers = with maintainers; [ ajs124 izorkin ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|