1 { lib, stdenv, fetchurl, makeWrapper, sbcl, sqlite, freetds, libzip, curl, git, cacert, openssl }:
2 stdenv.mkDerivation rec {
7 url = "https://github.com/dimitri/pgloader/releases/download/v3.6.9/pgloader-bundle-3.6.9.tgz";
8 sha256 = "sha256-pdCcRmoJnrfVnkhbT0WqLrRbCtOEmRgGRsXK+3uByeA=";
11 nativeBuildInputs = [ git makeWrapper ];
12 buildInputs = [ sbcl cacert sqlite freetds libzip curl openssl ];
14 LD_LIBRARY_PATH = lib.makeLibraryPath [ sqlite libzip curl git openssl freetds ];
17 export PATH=$PATH:$out/bin
24 enableParallelBuilding = false;
27 install -Dm755 bin/pgloader "$out/bin/pgloader"
28 wrapProgram $out/bin/pgloader --prefix LD_LIBRARY_PATH : "${LD_LIBRARY_PATH}"
32 homepage = "https://pgloader.io/";
33 description = "Loads data into PostgreSQL and allows you to implement Continuous Migration from your current database to PostgreSQL";
34 mainProgram = "pgloader";
35 maintainers = with maintainers; [ mguentner ];
36 license = licenses.postgresql;
37 platforms = platforms.all;