summaryrefslogtreecommitdiff
path: root/pkgs
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-25 14:12:07 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-04-25 00:04:22 +0200
commit54888eb8430557ef16a0488d13e3b1d0aaf5529d (patch)
tree5d44513364c6257170963f4c4a23a6ee2db19872 /pkgs
parent864c89d31c11d911b5910f694f2000efb9f7e841 (diff)
downloadNUR-54888eb8430557ef16a0488d13e3b1d0aaf5529d.tar.gz
NUR-54888eb8430557ef16a0488d13e3b1d0aaf5529d.tar.zst
NUR-54888eb8430557ef16a0488d13e3b1d0aaf5529d.zip
Upgrade pgloader and remove noChroot need
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/default.nix2
-rw-r--r--pkgs/pgloader/default.nix39
-rw-r--r--pkgs/pgloader/pgloader.json15
3 files changed, 31 insertions, 25 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix
index 297f524d..c91f6726 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -19,7 +19,7 @@ rec {
19 notmuch-python3 = callPackage ../pkgs/notmuch/notmuch-python { pythonPackages = python3Packages; }; 19 notmuch-python3 = callPackage ../pkgs/notmuch/notmuch-python { pythonPackages = python3Packages; };
20 notmuch-vim = callPackage ../pkgs/notmuch/notmuch-vim {}; 20 notmuch-vim = callPackage ../pkgs/notmuch/notmuch-vim {};
21 pg_activity = callPackage ../pkgs/pg_activity { inherit mylibs; }; 21 pg_activity = callPackage ../pkgs/pg_activity { inherit mylibs; };
22 pgloader = callPackage ../pkgs/pgloader { inherit mylibs; }; 22 pgloader = callPackage ../pkgs/pgloader {};
23 telegram-cli = callPackage ../pkgs/telegram-cli { inherit mylibs; }; 23 telegram-cli = callPackage ../pkgs/telegram-cli { inherit mylibs; };
24 telegram-history-dump = callPackage ../pkgs/telegram-history-dump { inherit mylibs; }; 24 telegram-history-dump = callPackage ../pkgs/telegram-history-dump { inherit mylibs; };
25 telegramircd = callPackage ../pkgs/telegramircd { inherit mylibs; telethon = callPackage ../pkgs/telethon_sync {}; }; 25 telegramircd = callPackage ../pkgs/telegramircd { inherit mylibs; telethon = callPackage ../pkgs/telethon_sync {}; };
diff --git a/pkgs/pgloader/default.nix b/pkgs/pgloader/default.nix
index 9f1be67d..6093ada8 100644
--- a/pkgs/pgloader/default.nix
+++ b/pkgs/pgloader/default.nix
@@ -1,19 +1,40 @@
1{ stdenv, mylibs, sbcl, cacert, sqlite, freetds, libzip, curl, git, openssl, makeWrapper }: 1# https://github.com/NixOS/nixpkgs/pull/61702
2stdenv.mkDerivation (mylibs.fetchedGithub ./pgloader.json // { 2{ stdenv, fetchurl, makeWrapper, sbcl, sqlite, freetds, libzip, curl, git, cacert, openssl }:
3 # was removed from quicklisp packages cd7bfa6f48295f361c691a7520fb122938bd2a68, 3stdenv.mkDerivation rec {
4 # but needs curl to build everything otherwise 4 pname = "pgloader";
5 __noChroot = true; 5 version = "3.6.1";
6 buildInputs = [ sbcl cacert sqlite freetds libzip curl git openssl makeWrapper ]; 6 name = "${pname}-${version}";
7
8 src = fetchurl {
9 url = "https://github.com/dimitri/pgloader/releases/download/v3.6.1/pgloader-bundle-3.6.1.tgz";
10 sha256 = "1sm8xmq30d1biin5br0y3vrv4fydbrzfqglz1hnvrkdyxrg7d6f9";
11 };
12
13 nativeBuildInputs = [ git makeWrapper ];
14 buildInputs = [ sbcl cacert sqlite freetds libzip curl openssl ];
15
7 LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath [ sqlite libzip curl git openssl freetds ]; 16 LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath [ sqlite libzip curl git openssl freetds ];
17
8 buildPhase = '' 18 buildPhase = ''
9 export PATH=$PATH:$out/bin 19 export PATH=$PATH:$out/bin
10 export HOME=$TMPDIR 20 export HOME=$TMPDIR
21
11 make pgloader 22 make pgloader
12 ''; 23 '';
24
13 dontStrip = true; 25 dontStrip = true;
14 enableParallelBuilding = false; 26 enableParallelBuilding = false;
27
15 installPhase = '' 28 installPhase = ''
16 install -Dm755 build/bin/pgloader "$out/bin/pgloader" 29 install -Dm755 bin/pgloader "$out/bin/pgloader"
17 wrapProgram $out/bin/pgloader --prefix LD_LIBRARY_PATH : "$LD_LIBRARY_PATH" 30 wrapProgram $out/bin/pgloader --prefix LD_LIBRARY_PATH : "${LD_LIBRARY_PATH}"
18 ''; 31 '';
19}) 32
33 meta = with stdenv.lib; {
34 homepage = https://pgloader.io/;
35 description = "pgloader loads data into PostgreSQL and allows you to implement Continuous Migration from your current database to PostgreSQL";
36 maintainers = with maintainers; [ mguentner ];
37 license = licenses.postgresql;
38 platforms = platforms.all;
39 };
40}
diff --git a/pkgs/pgloader/pgloader.json b/pkgs/pgloader/pgloader.json
deleted file mode 100644
index dfe310b7..00000000
--- a/pkgs/pgloader/pgloader.json
+++ /dev/null
@@ -1,15 +0,0 @@
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}