nixpkgs/pkgs/servers/sql/mariadb/default.nix
2014-06-22 15:29:23 +02:00

27 lines
928 B
Nix

{ stdenv, fetchurl, cmake, ncurses, openssl, bison, boost, libxml2, libaio, judy, libevent, groff }:
stdenv.mkDerivation rec {
name = "mariadb-${version}";
version = "10.0.11";
src = fetchurl {
url = "https://downloads.mariadb.org/interstitial/mariadb-${version}/source/mariadb-${version}.tar.gz";
sha256 = "1p8h06kns30rlbnzw9ddmihs7r3jhp8xlrl4r6h5d107wkcw86v3";
};
buildInputs = [ cmake ncurses openssl bison boost libxml2 libaio judy libevent groff ];
cmakeFlags = [ "-DWITH_READLINE=yes" "-DWITH_EMBEDDED_SERVER=yes" "-DINSTALL_SCRIPTDIR=bin" ];
enableParallelBuilding = true;
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;
};
}