nixpkgs/pkgs/by-name/ta/taler-exchange/package.nix
eljamm 4774e8f6c5 taler-exchange: 0.12.0 -> 0.13.0
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2024-09-04 12:45:21 +02:00

122 lines
2.9 KiB
Nix

{
lib,
stdenv,
fetchgit,
curl,
gnunet,
jansson,
libgcrypt,
libmicrohttpd,
libsodium,
libunistring,
pkg-config,
postgresql,
autoreconfHook,
python3,
recutils,
wget,
jq,
gettext,
texinfo,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "taler-exchange";
version = "0.13.0";
src = fetchgit {
url = "https://git.taler.net/exchange.git";
rev = "v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-elVZUuiIMLOG058n+Egpy9oD9T2sLDC4TUCYZTCi0bw=";
};
patches = [ ./0001-add-TALER_TEMPLATING_init_path.patch ];
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
libgcrypt
libmicrohttpd
jansson
libsodium
postgresql
curl
recutils
gettext
texinfo # Fix 'makeinfo' is missing on your system.
libunistring
python3.pkgs.jinja2
# jq is necessary for some tests and is checked by configure script
jq
];
propagatedBuildInputs = [ gnunet ];
# From ./bootstrap
preAutoreconf = ''
./contrib/gana-generate.sh
pushd contrib
rm -f Makefile.am
{
echo 'dist_amlspapkgdata_DATA = \'
find wallet-core/aml-backoffice/ -type f | sort | awk '{print " " $1 " \\" }'
} >> Makefile.am.ext
# Remove extra '\' at the end of the file
truncate -s -2 Makefile.am.ext
{
echo ""
echo 'dist_kycspapkgdata_DATA = \'
find wallet-core/kyc/ -type f | sort | awk '{print " " $1 " \\" }'
} >> Makefile.am.ext
# Remove extra '\' at the end of the file
truncate -s -2 Makefile.am.ext
{
echo ""
echo 'dist_auditorspapkgdata_DATA = \'
find wallet-core/auditor-backoffice/ -type f | sort | awk '{print " " $1 " \\" }'
} >> Makefile.am.ext
# Remove extra '\' at the end of the file
truncate -s -2 Makefile.am.ext
cat Makefile.am.in Makefile.am.ext >> Makefile.am
# Prevent accidental editing of the generated Makefile.am
chmod -w Makefile.am
popd
'';
enableParallelBuilding = true;
doInstallCheck = true;
nativeCheckInputs = [
wget
curl
];
checkTarget = "check";
meta = {
description = ''
Taler is an electronic payment system providing the ability to pay
anonymously using digital cash. Taler consists of a network protocol
definition (using a RESTful API over HTTP), a Exchange (which creates
digital coins), a Wallet (which allows customers to manage, store and
spend digital coins), and a Merchant website which allows customers to
spend their digital coins. Naturally, each Merchant is different, but
Taler includes code examples to help Merchants integrate Taler as a
payment system.
'';
homepage = "https://taler.net/";
changelog = "https://git.taler.net/exchange.git/tree/ChangeLog";
license = lib.licenses.agpl3Plus;
maintainers = with lib.maintainers; [ astro ];
platforms = lib.platforms.linux;
};
})