at v192 1.2 kB view raw
1{buildPerlPackage, stdenv, fetchurl, DBDmysql}: 2 3buildPerlPackage rec { 4 name = "maatkit-7540"; 5 6 src = fetchurl { 7 url = "http://maatkit.googlecode.com/files/${name}.tar.gz" ; 8 sha256 = "1a7rxrddkrsfxb2wj01ha91ld0vapfkqcy8j9p08l76zz2l8p2v1"; 9 }; 10 11 buildInputs = [ DBDmysql ] ; 12 13 preConfigure = '' 14 find . | while read fn; do 15 if test -f "$fn"; then 16 first=$(dd if="$fn" count=2 bs=1 2> /dev/null) 17 if test "$first" = "#!"; then 18 sed < "$fn" > "$fn".tmp \ 19 -e "s|^#\!\(.*[/\ ]perl.*\)$|#\!$perl/bin/perl $perlFlags|" 20 if test -x "$fn"; then chmod +x "$fn".tmp; fi 21 mv "$fn".tmp "$fn" 22 fi 23 fi 24 done 25 '' ; 26 27 meta = { 28 description = "Database toolkit"; 29 longDescription = '' 30 You can use Maatkit to prove replication is working correctly, fix 31 corrupted data, automate repetitive tasks, speed up your servers, and 32 much more. 33 34 In addition to MySQL, there is support for PostgreSQL, Memcached, and a 35 growing variety of other databases and technologies. 36 ''; 37 license = stdenv.lib.licenses.gpl2Plus; 38 homepage = http://www.maatkit.org/; 39 }; 40}