Skip to content

Commit

Permalink
depolymerization: init at 0-unstable-2024-03-18
Browse files Browse the repository at this point in the history
  • Loading branch information
eljamm authored and Atemu committed Jun 10, 2024
1 parent 7ff4e70 commit 5d70eca
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
31 changes: 31 additions & 0 deletions pkgs/by-name/depolymerization/0001-Fix-status-test-docs.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Subject: [PATCH] Fix status test docs

---
common/src/status.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/src/status.rs b/common/src/status.rs
index bc7d2f3..f98cd4a 100644
--- a/common/src/status.rs
+++ b/common/src/status.rs
@@ -17,7 +17,7 @@

/// Debit transaction status
///
-/// -> Requested API request
+/// () -> Requested API request
/// Requested -> Sent Announced to the bitcoin network
/// Sent -> Requested Conflicting transaction (reorg)
#[repr(u8)]
@@ -43,7 +43,7 @@ impl TryFrom<u8> for DebitStatus {

/// Bounce transaction status
///
-/// -> Requested Credit in wrong format
+/// () -> Requested Credit in wrong format
/// Requested -> Ignored Insufficient found
/// Requested -> Sent Announced to the bitcoin network
/// Sent -> Requested Conflicting transaction (reorg)
--
2.44.0

34 changes: 34 additions & 0 deletions pkgs/by-name/depolymerization/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
lib,
rustPlatform,
fetchgit,
stdenv,
darwin,
}:
rustPlatform.buildRustPackage {
pname = "depolymerization";
version = "0-unstable-2024-03-18";

src = fetchgit {
url = "https://git.taler.net/depolymerization.git/";
rev = "80ded0febe5acbfa64cef3d84846b4a1300ea97f";
hash = "sha256-wb1IxaiM+uGEa9l8Iz0fDluIWZgVMnT8BUZ/R5M3dcU=";
};

cargoHash = "sha256-ePDr47U50yXMC2C9KXTqWmmtDzONXm0yTPuxTNEidXI=";

patches = [./0001-Fix-status-test-docs.patch];

buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.CoreFoundation
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
];

meta = with lib; {
description = "Wire gateway for Bitcoin/Ethereum";
homepage = "https://git.taler.net/depolymerization.git/";
license = licenses.agpl3Only;
maintainers = with maintainers; [];
};
}

0 comments on commit 5d70eca

Please sign in to comment.