diff options
Diffstat (limited to 'pkgs/pgloader')
-rw-r--r-- | pkgs/pgloader/default.nix | 16 | ||||
-rw-r--r-- | pkgs/pgloader/pgloader.json | 15 |
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/pgloader/default.nix b/pkgs/pgloader/default.nix new file mode 100644 index 0000000..e4f24ea --- /dev/null +++ b/pkgs/pgloader/default.nix | |||
@@ -0,0 +1,16 @@ | |||
1 | { stdenv, fetchedGithub, sbcl, cacert, sqlite, freetds, libzip, curl, git, openssl, makeWrapper }: | ||
2 | stdenv.mkDerivation (fetchedGithub ./pgloader.json // { | ||
3 | buildInputs = [ sbcl cacert sqlite freetds libzip curl git openssl makeWrapper ]; | ||
4 | LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath [ sqlite libzip curl git openssl freetds ]; | ||
5 | buildPhase = '' | ||
6 | export PATH=$PATH:$out/bin | ||
7 | export HOME=$TMPDIR | ||
8 | make pgloader | ||
9 | ''; | ||
10 | dontStrip = true; | ||
11 | enableParallelBuilding = false; | ||
12 | installPhase = '' | ||
13 | install -Dm755 build/bin/pgloader "$out/bin/pgloader" | ||
14 | wrapProgram $out/bin/pgloader --prefix LD_LIBRARY_PATH : "$LD_LIBRARY_PATH" | ||
15 | ''; | ||
16 | }) | ||
diff --git a/pkgs/pgloader/pgloader.json b/pkgs/pgloader/pgloader.json new file mode 100644 index 0000000..dfe310b --- /dev/null +++ b/pkgs/pgloader/pgloader.json | |||
@@ -0,0 +1,15 @@ | |||
1 | { | ||
2 | "tag": "v3.5.2", | ||
3 | "meta": { | ||
4 | "name": "pgloader", | ||
5 | "url": "https://github.com/dimitri/pgloader", | ||
6 | "branch": "refs/tags/v3.5.2" | ||
7 | }, | ||
8 | "github": { | ||
9 | "owner": "dimitri", | ||
10 | "repo": "pgloader", | ||
11 | "rev": "63af7e7373975391446dcae151f5c61564849025", | ||
12 | "sha256": "1rd0k1x7ml6b6x526brachm13v51vx5ikpg64c8k8j29cskq2vqa", | ||
13 | "fetchSubmodules": true | ||
14 | } | ||
15 | } | ||