diff options
author | Lord-Valen <lord_valen@protonmail.com> | 2023-07-04 17:31:57 -0400 |
---|---|---|
committer | Yt <happysalada@tuta.io> | 2023-07-05 11:30:33 +0800 |
commit | 91d08355b0b032b25d3e3c263561ff318afbe052 (patch) | |
tree | 0c1d1bcf06c56229011debee5349b32d802c6703 | |
parent | 3795c6144019883c0a99553d32384345998aa61e (diff) |
atomic-swap: ensure monero-cli is available
-rw-r--r-- | pkgs/applications/blockchains/atomic-swap/default.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/applications/blockchains/atomic-swap/default.nix b/pkgs/applications/blockchains/atomic-swap/default.nix index dd0b3ef288029..6084a488d30f1 100644 --- a/pkgs/applications/blockchains/atomic-swap/default.nix +++ b/pkgs/applications/blockchains/atomic-swap/default.nix @@ -1,5 +1,4 @@ -{ lib, buildGoModule, fetchFromGitHub, nix-update-script }: - +{ lib, buildGoModule, fetchFromGitHub, nix-update-script, makeWrapper, monero-cli }: let pname = "atomic-swap"; version = "0.4.1"; @@ -22,6 +21,12 @@ buildGoModule { "cmd/bootnode" ]; + nativeBuildInputs = [ makeWrapper ]; + + postInstall = '' + wrapProgram $out/bin/swapd --prefix PATH : ${lib.makeBinPath [ monero-cli ]} + ''; + # integration tests require network access doCheck = false; @@ -30,7 +35,7 @@ buildGoModule { meta = with lib; { homepage = "https://github.com/AthanorLabs/atomic-swap"; description = "ETH-XMR atomic swap implementation"; - license = with licenses; [ gpl3Only ]; + license = with licenses; [ lgpl3Only ]; maintainers = with maintainers; [ happysalada ]; }; } |