2015-01-07 14:28:38 +00:00
|
|
|
{ stdenv, fetchurl, perl }:
|
2010-07-28 11:55:54 +00:00
|
|
|
|
2008-05-31 22:49:00 +00:00
|
|
|
# The homepage says this script is mature..
|
2010-07-28 11:55:54 +00:00
|
|
|
stdenv.mkDerivation {
|
2008-05-31 22:49:00 +00:00
|
|
|
name = "mysql2pgsql-0.0.1a";
|
|
|
|
|
2010-07-28 11:55:54 +00:00
|
|
|
src = fetchurl {
|
2008-05-31 22:49:00 +00:00
|
|
|
url = http://ftp.plusline.de/ftp.postgresql.org/projects/gborg/mysql2psql/devel/mysql2psql-0.0.1a.tgz;
|
|
|
|
sha256 = "0dpbxf3kdvpihz9cisx6wi3zzd0cnifaqvjxavrbwm4k4sz1qamp";
|
|
|
|
};
|
|
|
|
|
2015-01-07 14:28:38 +00:00
|
|
|
buildInputs = [ perl ];
|
2008-05-31 22:49:00 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2015-01-07 14:28:38 +00:00
|
|
|
mkdir -p $out/bin
|
2008-05-31 22:49:00 +00:00
|
|
|
mv {,$out/bin/}mysql2psql
|
|
|
|
'';
|
|
|
|
|
2014-11-06 00:44:33 +00:00
|
|
|
meta = {
|
2015-01-07 14:28:38 +00:00
|
|
|
description = "Convert MySQL dump files to PostgreSQL-loadable files";
|
2010-07-28 11:55:54 +00:00
|
|
|
homepage = http://pgfoundry.org/projects/mysql2pgsql/;
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.bsdOriginal;
|
2008-05-31 22:49:00 +00:00
|
|
|
};
|
|
|
|
}
|