nixpkgs/pkgs/development/perl-modules/maatkit/default.nix
Bjørn Forsman 083d0890f5 More description fixes
* Remove package name
* Start with upper case letter
* Remove trailing period

Also reword some descriptions and move some long descriptions to
longDescription.

I'm not touching generated packages.
2013-10-06 12:01:38 +02:00

40 lines
1.2 KiB
Nix

{buildPerlPackage, stdenv, fetchurl, DBDmysql}:
buildPerlPackage rec {
name = "maatkit-4790";
src = fetchurl {
url = "http://maatkit.googlecode.com/files/${name}.tar.gz" ;
sha256 = "0lf6dgh1w96m234hrkhagyyvv1m1ldchpzsg6iswvkj6sbvv7d7h";
};
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
'' ;
meta = {
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.
'';
license = "GPLv2+";
homepage = http://www.maatkit.org/;
};
}