![Vladimír Čunát](/assets/img/avatar_default.png)
Also, in case of collectd, the -lgcc_s shouldn't be needed anymore, as the library is in ${glibc}/lib/ now, which is practically always on RPATH. In case of seyren it was some stdenv change uncovering the mistake of putting src into buildInputs.
42 lines
1.4 KiB
Nix
42 lines
1.4 KiB
Nix
{ stdenv, fetchurl, cmake, ncurses, openssl, bison, boost, libxml2, libaio, judy, libevent, groff, perl, fixDarwinDylibNames }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "mariadb-${version}";
|
|
version = "10.0.14";
|
|
|
|
src = fetchurl {
|
|
url = "https://downloads.mariadb.org/interstitial/mariadb-${version}/source/mariadb-${version}.tar.gz";
|
|
sha256 = "07g3w841q8qw0mwi6grk65a2iky9x3axpxkb4c2a72i7pd7cl3mc";
|
|
};
|
|
|
|
buildInputs = [ cmake ncurses openssl bison boost libxml2 judy libevent groff ]
|
|
++ stdenv.lib.optional (!stdenv.isDarwin) libaio
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ perl fixDarwinDylibNames ];
|
|
|
|
patches = stdenv.lib.optional stdenv.isDarwin ./my_context_asm.patch;
|
|
|
|
cmakeFlags = [ "-DWITH_READLINE=yes" "-DWITH_EMBEDDED_SERVER=yes" "-DINSTALL_SCRIPTDIR=bin" ];
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=cpp";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
prePatch = ''
|
|
substituteInPlace cmake/libutils.cmake \
|
|
--replace /usr/bin/libtool libtool
|
|
'';
|
|
postInstall = ''
|
|
substituteInPlace $out/bin/mysql_install_db \
|
|
--replace basedir=\"\" basedir=\"$out\"
|
|
'';
|
|
|
|
passthru.mysqlVersion = "5.5";
|
|
|
|
meta = {
|
|
description = "An enhanced, drop-in replacement for MySQL";
|
|
homepage = https://mariadb.org/;
|
|
license = stdenv.lib.licenses.gpl2;
|
|
maintainers = with stdenv.lib.maintainers; [ shlevy thoughtpolice ];
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|