BefatorNix/mysql.nix
2025-08-18 13:48:00 +02:00

25 lines
715 B
Nix

{stdenv, fetchzip, autoreconfHook, libtool, ncurses, ps, breakpointHook}: stdenv.mkDerivation rec {
pname = "mysql";
version = "5.1.73";
src = fetchzip {
url = "https://downloads.mysql.com/archives/get/p/23/file/" + pname + "-" + version + ".tar.gz";
hash = "sha256-LBQst5LfINNE65Q9fht7EX5W0NKATqfqabS9EjPwkWQ=";
};
patches = [./mysql.patch];
nativeBuildInputs = [ps];
buildInputs = [autoreconfHook ncurses breakpointHook];
env = {
ACLOCAL_PATH="${libtool}/share/aclocal";
NIX_CFLAGS_COMPILE="-fpermissive";
};
configureFlags = ["--with-plugins=innobase"];
postInstall = ''
ln -s $out/libexec/mysqld $out/bin/mysqld
'';
}