aboutsummaryrefslogblamecommitdiff
path: root/pkgs/pgloader/default.nix
blob: e4f24eafe656201d77cbf9238adc75577201ea0d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                                                  
{ stdenv, fetchedGithub, sbcl, cacert, sqlite, freetds, libzip, curl, git, openssl, makeWrapper }:
stdenv.mkDerivation (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"
  '';
})