nixpkgs/pkgs/by-name/ta/taler-exchange/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

122 lines
2.9 KiB
Nix
Raw Normal View History

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,
}:
stdenv.mkDerivation (finalAttrs: {
2024-04-27 08:43:57 +00:00
pname = "taler-exchange";
version = "0.13.0";
2024-04-27 08:43:57 +00:00
src = fetchgit {
url = "https://git.taler.net/exchange.git";
rev = "v${finalAttrs.version}";
2024-04-27 08:43:57 +00:00
fetchSubmodules = true;
hash = "sha256-elVZUuiIMLOG058n+Egpy9oD9T2sLDC4TUCYZTCi0bw=";
2024-04-27 08:43:57 +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
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
{
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
# 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";
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";
license = lib.licenses.agpl3Plus;
maintainers = with lib.maintainers; [ astro ];
platforms = lib.platforms.linux;
2024-04-27 08:43:57 +00:00
};
})