mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
64 lines
1.1 KiB
Nix
64 lines
1.1 KiB
Nix
{
|
|
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.11.0";
|
|
|
|
src = fetchgit {
|
|
url = "https://git.taler.net/sync.git";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-IGYc4Olbn9lVnN1THR2BXzllD1li/vhWwHg+1WU84YM=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
})
|