2015-01-07 14:28:38 +00:00
|
|
|
{ stdenv, fetchurl, perl }:
|
2010-07-28 12:55:54 +01:00
|
|
|
|
2008-05-31 23:49:00 +01:00
|
|
|
# The homepage says this script is mature..
|
2010-07-28 12:55:54 +01:00
|
|
|
stdenv.mkDerivation {
|
2008-05-31 23:49:00 +01:00
|
|
|
name = "mysql2pgsql-0.0.1a";
|
|
|
|
|
2010-07-28 12:55:54 +01:00
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "http://ftp.plusline.de/ftp.postgresql.org/projects/gborg/mysql2psql/devel/mysql2psql-0.0.1a.tgz";
|
2008-05-31 23:49:00 +01:00
|
|
|
sha256 = "0dpbxf3kdvpihz9cisx6wi3zzd0cnifaqvjxavrbwm4k4sz1qamp";
|
|
|
|
};
|
|
|
|
|
2015-01-07 14:28:38 +00:00
|
|
|
buildInputs = [ perl ];
|
2008-05-31 23:49:00 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
2015-01-07 14:28:38 +00:00
|
|
|
mkdir -p $out/bin
|
2008-05-31 23:49:00 +01: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";
|
2020-10-02 08:58:50 +01:00
|
|
|
homepage = "https://pgfoundry.org/projects/mysql2pgsql/";
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.bsdOriginal;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2008-05-31 23:49:00 +01:00
|
|
|
};
|
|
|
|
}
|