From 628fa4ecb3633e5786d235138ab5a4b92ed02abc Mon Sep 17 00:00:00 2001 From: eljamm Date: Tue, 17 Sep 2024 15:59:48 +0100 Subject: [PATCH] taler-depolymerization: init at 0-unstable-2024-06-17 --- .../ta/taler-depolymerization/package.nix | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 pkgs/by-name/ta/taler-depolymerization/package.nix diff --git a/pkgs/by-name/ta/taler-depolymerization/package.nix b/pkgs/by-name/ta/taler-depolymerization/package.nix new file mode 100644 index 000000000000..49e14d438d77 --- /dev/null +++ b/pkgs/by-name/ta/taler-depolymerization/package.nix @@ -0,0 +1,55 @@ +{ + 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.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 + ]; + }; +}