blob: c2c03e7e228da581c64f4d971d5bb0d1c7986b30 (
plain) (
tree)
|
|
{ stdenv, mylibs, sbcl, cacert, sqlite, freetds, libzip, curl, git, openssl, makeWrapper }:
stdenv.mkDerivation (mylibs.fetchedGithub ./pgloader.json // {
buildInputs = [ sbcl cacert sqlite freetds libzip curl git openssl makeWrapper ];
LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath [ sqlite libzip curl git openssl freetds ];
buildPhase = ''
export PATH=$PATH:$out/bin
export HOME=$TMPDIR
make pgloader
'';
dontStrip = true;
enableParallelBuilding = false;
installPhase = ''
install -Dm755 build/bin/pgloader "$out/bin/pgloader"
wrapProgram $out/bin/pgloader --prefix LD_LIBRARY_PATH : "$LD_LIBRARY_PATH"
'';
})
|