Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 07cc3eb0d005
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 385844d5e981
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Apr 24, 2017

  1. percona-server56: init at 5.6.35-80.0

    Graham Christensen committed Apr 24, 2017
    Copy the full SHA
    2165b48 View commit details
  2. Merge pull request #24998 from grahamc/percona

    percona-server56: init at 5.6.35-80.0
    grahamc authored Apr 24, 2017
    Copy the full SHA
    385844d View commit details
Showing with 64 additions and 0 deletions.
  1. +61 −0 pkgs/servers/sql/percona/5.6.x.nix
  2. +3 −0 pkgs/top-level/all-packages.nix
61 changes: 61 additions & 0 deletions pkgs/servers/sql/percona/5.6.x.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{ stdenv, fetchurl, cmake, bison, ncurses, openssl, zlib, libaio, perl }:

stdenv.mkDerivation rec {
name = "percona-server-${version}";
version = "5.6.35-80.0";

src = fetchurl {
url = "https://www.percona.com/downloads/Percona-Server-5.6/Percona-Server-${version}/source/tarball/percona-server-${version}.tar.gz";
sha256 = "0szjywx902da09pg8yqj8l2acplmh69hn5smrk45i291qsi5m6r5";
};

buildInputs = [ cmake bison ncurses openssl zlib libaio perl ];

enableParallelBuilding = true;

cmakeFlags = [
"-DFEATURE_SET=community"
"-DBUILD_CONFIG=mysql_release"
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"
"-DWITH_SSL=yes"
"-DWITH_READLINE=no"
"-DWITH_EMBEDDED_SERVER=no"
"-DWITH_EDITLINE=bundled"
"-DWITH_ZLIB=yes"
"-DHAVE_IPV6=no"
"-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock"
"-DMYSQL_DATADIR=/var/lib/mysql"
"-DINSTALL_SYSCONFDIR=etc/mysql"
"-DINSTALL_INFODIR=share/mysql/docs"
"-DINSTALL_MANDIR=share/man"
"-DINSTALL_PLUGINDIR=lib/mysql/plugin"
"-DINSTALL_SCRIPTDIR=bin"
"-DINSTALL_INCLUDEDIR=include/mysql"
"-DINSTALL_DOCREADMEDIR=share/mysql"
"-DINSTALL_SUPPORTFILESDIR=share/mysql"
"-DINSTALL_MYSQLSHAREDIR=share/mysql"
"-DINSTALL_DOCDIR=share/mysql/docs"
"-DINSTALL_SHAREDIR=share/mysql"
];

NIX_LDFLAGS = "-lgcc_s";

prePatch = ''
sed -i -e "s|/usr/bin/libtool|libtool|" cmake/libutils.cmake
'';
postInstall = ''
sed -i -e "s|basedir=\"\"|basedir=\"$out\"|" $out/bin/mysql_install_db
rm -r $out/mysql-test $out/sql-bench $out/data "$out"/lib/*.a
rm $out/share/man/man1/mysql-test-run.pl.1
'';

passthru.mysqlVersion = "5.6";

meta = with stdenv.lib; {
homepage = "https://www.percona.com";
description = "a free, fully compatible, enhanced, open source drop-in replacement for MySQL that provides superior performance, scalability and instrumentation";
platforms = platforms.linux;
license = licenses.gpl2;
maintainers = with maintainers; [ grahamc ];
};
}
3 changes: 3 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -10912,6 +10912,9 @@ with pkgs;

mongodb248 = callPackage ../servers/nosql/mongodb/2.4.8.nix { };

percona-server56 = callPackage ../servers/sql/percona/5.6.x.nix { };
percona-server = percona-server56;

riak = callPackage ../servers/nosql/riak/2.2.0.nix {
erlang = erlang_basho_R16B02;
};