mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
added DBD-mysql, maatkit
svn path=/nixpkgs/trunk/; revision=17703
This commit is contained in:
parent
49124816cc
commit
7aae02cb99
15
pkgs/development/perl-modules/DBD-mysql/default.nix
Normal file
15
pkgs/development/perl-modules/DBD-mysql/default.nix
Normal file
@ -0,0 +1,15 @@
|
||||
{fetchurl, buildPerlPackage, DBI, mysql}:
|
||||
|
||||
buildPerlPackage {
|
||||
name = "DBD-mysql-4.013";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://cpan/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.013.tar.gz;
|
||||
sha256 = "074jm3fd9bi9am4i8alwim5i7a4gl07hzjy7a7hfdj9awbd0w9x9";
|
||||
};
|
||||
|
||||
buildInputs = [mysql] ;
|
||||
propagatedBuildInputs = [DBI];
|
||||
|
||||
# makeMakerFlags = "MYSQL_HOME=${mysql}";
|
||||
}
|
32
pkgs/development/perl-modules/maatkit/default.nix
Normal file
32
pkgs/development/perl-modules/maatkit/default.nix
Normal file
@ -0,0 +1,32 @@
|
||||
{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 = "Maatkit makes MySQL easier and safer to manage. It provides simple, predictable ways to do things you cannot otherwise do.";
|
||||
license = "GPLv2+";
|
||||
homepage = http://www.maatkit.org/;
|
||||
};
|
||||
}
|
@ -830,6 +830,11 @@ rec {
|
||||
inherit (pkgs) sqlite;
|
||||
};
|
||||
|
||||
DBDmysql = import ../development/perl-modules/DBD-mysql {
|
||||
inherit fetchurl buildPerlPackage DBI;
|
||||
inherit (pkgs) mysql;
|
||||
};
|
||||
|
||||
DBDPg = import ../development/perl-modules/DBD-Pg {
|
||||
inherit fetchurl buildPerlPackage DBI;
|
||||
inherit (pkgs) postgresql;
|
||||
@ -1501,6 +1506,11 @@ rec {
|
||||
propagatedBuildInputs = [URI HTMLParser HTMLTagset];
|
||||
};
|
||||
|
||||
maatkit = import ../development/perl-modules/maatkit {
|
||||
inherit fetchurl buildPerlPackage stdenv DBDmysql;
|
||||
};
|
||||
|
||||
|
||||
MailIMAPClient = buildPerlPackage {
|
||||
name = "Mail-IMAPClient-2.2.9";
|
||||
src = fetchurl {
|
||||
|
Loading…
Reference in New Issue
Block a user