@@ -18,13 +18,6 @@ mytopEnv = perl.withPackages (p: with p; [ DataDumper DBDmysql DBI TermReadKey ]
1818mariadb = server // {
1919 inherit client; # MariaDB Client
2020 server = server; # MariaDB Server
21− inherit connector-c; # libmysqlclient.so
22− inherit galera;
23−};
24−
25−galeraLibs = buildEnv {
26− name = "galera-lib-inputs-united";
27− paths = [ openssl.out boost check ];
2821};
2922
3023common = rec { # attributes common to both builds
@@ -218,95 +211,4 @@ server = stdenv.mkDerivation (common // {
218211
219212 CXXFLAGS = optionalString stdenv.isi686 "-fpermissive";
220213});
221−
222−connector-c = stdenv.mkDerivation rec {
223− pname = "mariadb-connector-c";
224− version = "2.3.7";
225−
226− src = fetchurl {
227− url = "https://downloads.mariadb.org/interstitial/connector-c-${version}/mariadb-connector-c-${version}-src.tar.gz/from/http%3A//nyc2.mirrors.digitalocean.com/mariadb/";
228− sha256 = "13izi35vvxhiwl2dsnqrz75ciisy2s2k30giv7hrm01qlwnmiycl";
229− name = "mariadb-connector-c-${version}-src.tar.gz";
230− };
231−
232− # outputs = [ "dev" "out" ]; FIXME: cmake variables don't allow that < 3.0
233− cmakeFlags = [
234− "-DWITH_EXTERNAL_ZLIB=ON"
235− "-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock"
236− ];
237−
238− # The cmake setup-hook uses $out/lib by default, this is not the case here.
239− preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
240− cmakeFlagsArray+=("-DCMAKE_INSTALL_NAME_DIR=$out/lib/mariadb")
241− '';
242−
243− nativeBuildInputs = [ cmake ];
244− propagatedBuildInputs = [ openssl zlib ];
245− buildInputs = [ libiconv ];
246−
247− enableParallelBuilding = true;
248−
249− postFixup = ''
250− ln -sv mariadb_config $out/bin/mysql_config
251− ln -sv mariadb $out/lib/mysql
252− ln -sv mariadb $out/include/mysql
253− '';
254−
255− meta = with stdenv.lib; {
256− description = "Client library that can be used to connect to MySQL or MariaDB";
257− license = licenses.lgpl21;
258− maintainers = with maintainers; [ globin ];
259− platforms = platforms.all;
260− };
261−};
262−
263−galera = stdenv.mkDerivation rec {
264− pname = "mariadb-galera";
265− version = "25.3.26";
266−
267− src = fetchFromGitHub {
268− owner = "codership";
269− repo = "galera";
270− rev = "release_${version}";
271− sha256 = "0fs0c1px9lknf1a5wwb12z1hj7j7b6hsfjddggikvkdkrnr2xs1f";
272− fetchSubmodules = true;
273− };
274−
275− buildInputs = [ asio boost check openssl scons ];
276−
277− postPatch = ''
278− substituteInPlace SConstruct \
279− --replace "boost_library_path = '''" "boost_library_path = '${boost}/lib'"
280− '';
281−
282− preConfigure = ''
283− export CPPFLAGS="-I${asio}/include -I${boost.dev}/include -I${check}/include -I${openssl.dev}/include"
284− export LIBPATH="${galeraLibs}/lib"
285− '';
286−
287− sconsFlags = "ssl=1 system_asio=0 strict_build_flags=0";
288−
289− installPhase = ''
290− # copied with modifications from scripts/packages/freebsd.sh
291− GALERA_LICENSE_DIR="$share/licenses/${pname}-${version}"
292− install -d $out/{bin,lib/galera,share/doc/galera,$GALERA_LICENSE_DIR}
293− install -m 555 "garb/garbd" "$out/bin/garbd"
294− install -m 444 "libgalera_smm.so" "$out/lib/galera/libgalera_smm.so"
295− install -m 444 "scripts/packages/README" "$out/share/doc/galera/"
296− install -m 444 "scripts/packages/README-MySQL" "$out/share/doc/galera/"
297− install -m 444 "scripts/packages/freebsd/LICENSE" "$out/$GALERA_LICENSE_DIR"
298− install -m 444 "LICENSE" "$out/$GALERA_LICENSE_DIR/GPLv2"
299− install -m 444 "asio/LICENSE_1_0.txt" "$out/$GALERA_LICENSE_DIR/LICENSE.asio"
300− install -m 444 "www.evanjones.ca/LICENSE" "$out/$GALERA_LICENSE_DIR/LICENSE.crc32c"
301− install -m 444 "chromium/LICENSE" "$out/$GALERA_LICENSE_DIR/LICENSE.chromium"
302− '';
303−
304− meta = {
305− description = "Galera 3 wsrep provider library";
306− homepage = http://galeracluster.com/;
307− license = licenses.lgpl2;
308− maintainers = with maintainers; [ izorkin ];
309− platforms = platforms.all;
310− };
311−};
312214in mariadb