Unverified Commit affd262c authored by asymmetric's avatar asymmetric Committed by GitHub
Browse files

taler-depolymerization: init at 0-unstable-2024-06-17 (#342595)

parents f3f6a20f 628fa4ec
Loading
Loading
Loading
Loading
+55 −0
Original line number Diff line number Diff line
{
  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
    ];
  };
}