Merge pull request #311933 from wegank/sync-init

sync: init at 0.10.1
This commit is contained in:
Aleksana 2024-05-18 01:30:59 +08:00 committed by GitHub
commit 7d58f29771
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
};
})