2021-01-15 09:19:50 +00:00
|
|
|
{ lib, 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..
|
2021-08-02 09:38:45 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mysql2pgsql";
|
|
|
|
version = "0.0.1a";
|
2008-05-31 22:49:00 +00:00
|
|
|
|
2010-07-28 11:55:54 +00:00
|
|
|
src = fetchurl {
|
2021-08-02 09:38:45 +00:00
|
|
|
url = "http://ftp.plusline.de/ftp.postgresql.org/projects/gborg/mysql2psql/devel/mysql2psql-${version}.tgz";
|
2008-05-31 22:49:00 +00:00
|
|
|
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";
|
2020-10-02 07:58:50 +00:00
|
|
|
homepage = "https://pgfoundry.org/projects/mysql2pgsql/";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.bsdOriginal;
|
2022-05-05 00:46:39 +00:00
|
|
|
mainProgram = "mysql2psql";
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2008-05-31 22:49:00 +00:00
|
|
|
};
|
|
|
|
}
|