2010-07-28 13:55:54 +02:00
|
|
|
{ stdenv, fetchurl, perl, shebangfix }:
|
|
|
|
|
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 {
|
2008-06-01 00:49:00 +02:00
|
|
|
url = http://ftp.plusline.de/ftp.postgresql.org/projects/gborg/mysql2psql/devel/mysql2psql-0.0.1a.tgz;
|
|
|
|
sha256 = "0dpbxf3kdvpihz9cisx6wi3zzd0cnifaqvjxavrbwm4k4sz1qamp";
|
|
|
|
};
|
|
|
|
|
|
|
|
phases = "unpackPhase installPhase";
|
|
|
|
|
2010-07-28 13:55:54 +02:00
|
|
|
buildInputs = [ perl shebangfix ];
|
2008-06-01 00:49:00 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin;
|
|
|
|
shebangfix mysql2psql
|
|
|
|
chmod +x mysql2psql
|
|
|
|
mv {,$out/bin/}mysql2psql
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2010-07-28 13:55:54 +02:00
|
|
|
description = "converts mysql dump files to psql loadable files ";
|
|
|
|
homepage = http://pgfoundry.org/projects/mysql2pgsql/;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = "BSD-Original";
|
2008-06-01 00:49:00 +02:00
|
|
|
};
|
|
|
|
}
|