nixpkgs/pkgs/development/tools/pgloader/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, makeWrapper, sbcl, sqlite, freetds, libzip, curl, git, cacert, openssl }:
2018-11-16 14:10:53 +00:00
stdenv.mkDerivation rec {
pname = "pgloader";
2022-10-25 03:11:10 +00:00
version = "3.6.9";
2018-11-16 14:10:53 +00:00
src = fetchurl {
2022-10-25 03:11:10 +00:00
url = "https://github.com/dimitri/pgloader/releases/download/v3.6.9/pgloader-bundle-3.6.9.tgz";
sha256 = "sha256-pdCcRmoJnrfVnkhbT0WqLrRbCtOEmRgGRsXK+3uByeA=";
2018-11-16 14:10:53 +00:00
};
nativeBuildInputs = [ git makeWrapper ];
buildInputs = [ sbcl cacert sqlite freetds libzip curl openssl ];
2018-11-16 14:10:53 +00:00
LD_LIBRARY_PATH = lib.makeLibraryPath [ sqlite libzip curl git openssl freetds ];
2018-11-16 14:10:53 +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}"
'';
meta = with lib; {
2020-03-23 20:49:49 +00:00
homepage = "https://pgloader.io/";
description = "Loads data into PostgreSQL and allows you to implement Continuous Migration from your current database to PostgreSQL";
mainProgram = "pgloader";
2018-11-16 14:10:53 +00:00
maintainers = with maintainers; [ mguentner ];
license = licenses.postgresql;
platforms = platforms.all;
};
}