From 2e0ff8210213844c03f24e0288dcf06905ec6d43 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Wed, 15 May 2024 14:33:46 +0200 Subject: sync: init at 0.10.1 --- pkgs/by-name/sy/sync/package.nix | 63 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 pkgs/by-name/sy/sync/package.nix diff --git a/pkgs/by-name/sy/sync/package.nix b/pkgs/by-name/sy/sync/package.nix new file mode 100644 index 0000000000000..e96aa738d2c14 --- /dev/null +++ b/pkgs/by-name/sy/sync/package.nix @@ -0,0 +1,63 @@ +{ + lib, + stdenv, + fetchgit, + autoreconfHook, + libgcrypt, + pkg-config, + curlWithGnuTls, + gnunet, + jansson, + libmicrohttpd, + libsodium, + libtool, + postgresql, + taler-exchange, + taler-merchant, + runtimeShell, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "sync"; + version = "0.10.1"; + + src = fetchgit { + url = "https://git.taler.net/sync.git"; + rev = "v${finalAttrs.version}"; + hash = "sha256-7EBm4Zp1sjZw7pXxQySY+1It3C/KLG2SHhqUPhDATbg="; + }; + + strictDeps = true; + + nativeBuildInputs = [ + autoreconfHook + libgcrypt + pkg-config + ]; + + buildInputs = [ + curlWithGnuTls + gnunet + jansson + libgcrypt + libmicrohttpd + libsodium + libtool + postgresql + taler-exchange + taler-merchant + ]; + + preFixup = '' + substituteInPlace "$out/bin/sync-dbconfig" \ + --replace-fail "/bin/bash" "${runtimeShell}" + ''; + + meta = { + description = "Backup and synchronization service"; + homepage = "https://git.taler.net/sync.git"; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ wegank ]; + platforms = lib.platforms.linux; + }; +}) -- cgit 1.4.1