aboutsummaryrefslogtreecommitdiff
path: root/pkgs/pgloader
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-04-26 02:35:33 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-04-26 02:35:33 +0200
commita2230e848bc85e484ef14163ac90fdb7045855f7 (patch)
tree2a1cc4158e5aeca3b6022efec7cc11ee405b7757 /pkgs/pgloader
parent1618010c141571c4d9a3fa9d340d009620c4520f (diff)
downloadNix-a2230e848bc85e484ef14163ac90fdb7045855f7.tar.gz
Nix-a2230e848bc85e484ef14163ac90fdb7045855f7.tar.zst
Nix-a2230e848bc85e484ef14163ac90fdb7045855f7.zip
Move more packages to separate files
Diffstat (limited to 'pkgs/pgloader')
-rw-r--r--pkgs/pgloader/default.nix16
-rw-r--r--pkgs/pgloader/pgloader.json15
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 }:
2stdenv.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}