2022-08-12 12:06:08 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, sbcl_2_2_6, sqlite, freetds, libzip, curl, git, cacert, openssl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pgloader";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "3.6.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-09-30 11:47:45 +00:00
|
|
|
url = "https://github.com/dimitri/pgloader/releases/download/v3.6.8/pgloader-bundle-3.6.8.tgz";
|
|
|
|
sha256 = "sha256-h5vB+KOapbXsSVNIVWEsaanyczaCfl81+SXdiNmNboE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ git makeWrapper ];
|
2022-08-12 12:06:08 +00:00
|
|
|
buildInputs = [ sbcl_2_2_6 cacert sqlite freetds libzip curl openssl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
LD_LIBRARY_PATH = lib.makeLibraryPath [ sqlite libzip curl git openssl freetds ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
export PATH=$PATH:$out/bin
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
|
|
|
|
make pgloader
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontStrip = true;
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 bin/pgloader "$out/bin/pgloader"
|
|
|
|
wrapProgram $out/bin/pgloader --prefix LD_LIBRARY_PATH : "${LD_LIBRARY_PATH}"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://pgloader.io/";
|
2020-11-03 02:18:15 +00:00
|
|
|
description = "Loads data into PostgreSQL and allows you to implement Continuous Migration from your current database to PostgreSQL";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ mguentner ];
|
|
|
|
license = licenses.postgresql;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|