2024-04-27 08:43:57 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchgit,
|
|
|
|
curl,
|
|
|
|
gnunet,
|
|
|
|
jansson,
|
|
|
|
libgcrypt,
|
|
|
|
libmicrohttpd,
|
|
|
|
libsodium,
|
|
|
|
libunistring,
|
|
|
|
pkg-config,
|
|
|
|
postgresql,
|
|
|
|
autoreconfHook,
|
|
|
|
python3,
|
|
|
|
recutils,
|
|
|
|
wget,
|
|
|
|
jq,
|
|
|
|
gettext,
|
|
|
|
texinfo,
|
|
|
|
}:
|
|
|
|
|
2024-08-29 13:04:03 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2024-04-27 08:43:57 +00:00
|
|
|
pname = "taler-exchange";
|
2024-08-29 13:07:01 +00:00
|
|
|
version = "0.13.0";
|
2024-04-27 08:43:57 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.taler.net/exchange.git";
|
2024-08-29 13:04:03 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2024-04-27 08:43:57 +00:00
|
|
|
fetchSubmodules = true;
|
2024-08-29 13:07:01 +00:00
|
|
|
hash = "sha256-elVZUuiIMLOG058n+Egpy9oD9T2sLDC4TUCYZTCi0bw=";
|
2024-04-27 08:43:57 +00:00
|
|
|
};
|
|
|
|
|
2024-08-08 11:51:38 +00:00
|
|
|
patches = [ ./0001-add-TALER_TEMPLATING_init_path.patch ];
|
|
|
|
|
2024-04-27 08:43:57 +00:00
|
|
|
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
|
2024-08-29 13:07:01 +00:00
|
|
|
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
|
2024-04-27 08:43:57 +00:00
|
|
|
truncate -s -2 Makefile.am.ext
|
2024-08-29 13:07:01 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
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
|
|
|
|
|
2024-04-27 08:43:57 +00:00
|
|
|
cat Makefile.am.in Makefile.am.ext >> Makefile.am
|
2024-08-29 13:07:01 +00:00
|
|
|
# Prevent accidental editing of the generated Makefile.am
|
|
|
|
chmod -w Makefile.am
|
2024-04-27 08:43:57 +00:00
|
|
|
popd
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doInstallCheck = true;
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
wget
|
|
|
|
curl
|
|
|
|
];
|
|
|
|
|
|
|
|
checkTarget = "check";
|
|
|
|
|
2024-08-29 13:04:03 +00:00
|
|
|
meta = {
|
2024-04-27 08:43:57 +00:00
|
|
|
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/";
|
2024-06-16 20:48:03 +00:00
|
|
|
changelog = "https://git.taler.net/exchange.git/tree/ChangeLog";
|
2024-08-29 13:04:03 +00:00
|
|
|
license = lib.licenses.agpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [ astro ];
|
|
|
|
platforms = lib.platforms.linux;
|
2024-04-27 08:43:57 +00:00
|
|
|
};
|
2024-08-29 13:04:03 +00:00
|
|
|
})
|