2021-01-25 08:26:54 +00:00
|
|
|
{buildPerlPackage, lib, fetchurl, DBDmysql}:
|
2009-10-07 15:08:34 +00:00
|
|
|
|
2019-06-20 13:07:56 +00:00
|
|
|
buildPerlPackage {
|
|
|
|
pname = "maatkit";
|
|
|
|
version = "7540";
|
2009-10-07 15:08:34 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/maatkit/maatkit-7540.tar.gz";
|
2014-04-07 12:02:15 +00:00
|
|
|
sha256 = "1a7rxrddkrsfxb2wj01ha91ld0vapfkqcy8j9p08l76zz2l8p2v1";
|
2009-10-07 15:08:34 +00:00
|
|
|
};
|
|
|
|
|
2016-05-15 21:34:17 +00:00
|
|
|
outputs = [ "out" ];
|
|
|
|
|
2009-10-07 15:08:34 +00:00
|
|
|
buildInputs = [ DBDmysql ] ;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
find . | while read fn; do
|
|
|
|
if test -f "$fn"; then
|
|
|
|
first=$(dd if="$fn" count=2 bs=1 2> /dev/null)
|
|
|
|
if test "$first" = "#!"; then
|
|
|
|
sed < "$fn" > "$fn".tmp \
|
|
|
|
-e "s|^#\!\(.*[/\ ]perl.*\)$|#\!$perl/bin/perl $perlFlags|"
|
|
|
|
if test -x "$fn"; then chmod +x "$fn".tmp; fi
|
|
|
|
mv "$fn".tmp "$fn"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
'' ;
|
|
|
|
|
2021-01-17 18:11:59 +00:00
|
|
|
meta = with lib; {
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "Database toolkit";
|
|
|
|
longDescription = ''
|
|
|
|
You can use Maatkit to prove replication is working correctly, fix
|
|
|
|
corrupted data, automate repetitive tasks, speed up your servers, and
|
|
|
|
much more.
|
|
|
|
|
|
|
|
In addition to MySQL, there is support for PostgreSQL, Memcached, and a
|
|
|
|
growing variety of other databases and technologies.
|
|
|
|
'';
|
2021-01-17 18:11:59 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.maatkit.org/";
|
2009-10-07 15:08:34 +00:00
|
|
|
};
|
|
|
|
}
|