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