taler-merchant: 0.13.0 -> 0.14.1

This commit is contained in:
Weijia Wang
2025-01-03 04:12:53 +01:00
parent 5b01aaa089
commit 95077128f7
+4 -4
View File
@@ -15,13 +15,13 @@
stdenv.mkDerivation (finalAttrs: {
pname = "taler-merchant";
version = "0.13.0";
version = "0.14.1";
src = fetchgit {
url = "https://git.taler.net/merchant.git";
rev = "v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-N3atOOE21OEks3G1LPOM5qo/kq0D5D9gmTfURCBZx6M=";
hash = "sha256-ac7ajHBLW6BJrL0iaa+b7XNZHMEEmbAo17URIdPSXd8=";
};
postUnpack = ''
@@ -32,7 +32,7 @@ stdenv.mkDerivation (finalAttrs: {
# path to the `taler-exchange` package is used.
postPatch = ''
substituteInPlace src/backend/taler-merchant-httpd.c \
--replace-fail 'TALER_TEMPLATING_init ("merchant");' "TALER_TEMPLATING_init_path (\"merchant\", \"$out/share/taler\");"
--replace-fail 'TALER_TEMPLATING_init (TALER_MERCHANT_project_data ())' "TALER_TEMPLATING_init_path (\"merchant\", \"$out/share/taler\")"
substituteInPlace src/backend/taler-merchant-httpd_spa.c \
--replace-fail 'GNUNET_DISK_directory_scan (dn,' "GNUNET_DISK_directory_scan (\"$out/share/taler/merchant/spa/\","
@@ -65,7 +65,7 @@ stdenv.mkDerivation (finalAttrs: {
# NOTE: The executables that need database access fail to detect the
# postgresql library in `$out/lib/taler`, so we need to wrap them.
postInstall = ''
for exec in dbinit httpd webhook wirewatch depositcheck exchange; do
for exec in dbinit httpd webhook wirewatch depositcheck exchangekeyupdate; do
wrapProgram $out/bin/taler-merchant-$exec \
--prefix LD_LIBRARY_PATH : "$out/lib/taler"
done