2025-07-26 11:39:35 +02:00

43 lines
1011 B
Nix

{
lib,
rustPlatform,
fetchgit,
}:
rustPlatform.buildRustPackage {
pname = "taler-depolymerization";
version = "0-unstable-2024-06-17";
src = fetchgit {
url = "https://git.taler.net/depolymerization.git/";
rev = "a0d27ac3bba22d4934ca9f7b244b0d9e45bb484f";
hash = "sha256-HmQ/DPq/O6aODWms/bSsCVgBF7z246xxfYxiHrAkgYw=";
};
cargoHash = "sha256-P0VrXYbO4RD3cNTai2hfTksbiGldkwoYgZm+C5Jh/4Y=";
outputs = [
"out"
"doc"
];
postPatch = ''
# fix missing expression in test docs
substituteInPlace common/src/status.rs \
--replace-fail ' -> Requested' '() -> Requested'
'';
postInstall = ''
mkdir -p $doc/share/doc $out/share/examples
cp -R docs $doc/share/doc/taler-depolymerization
cp docs/*.conf $out/share/examples
'';
meta = {
description = "Wire gateway for Bitcoin/Ethereum";
homepage = "https://git.taler.net/depolymerization.git/";
license = lib.licenses.agpl3Only;
teams = [ lib.teams.ngi ];
};
}