depot/third_party/nixpkgs/pkgs/by-name/ta/taler-depolymerization/package.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

55 lines
1.3 KiB
Nix

{
lib,
rustPlatform,
fetchgit,
stdenv,
darwin,
}:
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-NgoLCTHhEs45cnx21bU2ko3oWxePSzKgUpnCGqhjvTs=";
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
'';
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
[
CoreFoundation
Security
SystemConfiguration
]
);
meta = {
description = "Wire gateway for Bitcoin/Ethereum";
homepage = "https://git.taler.net/depolymerization.git/";
license = lib.licenses.agpl3Only;
maintainers = [
# maintained by the team working on NGI-supported software, no group for this yet
];
};
}