atomic-swap: ensure monero-cli is available

This commit is contained in:
Lord-Valen
2023-07-05 11:30:33 +08:00
committed by Yt
parent 3795c61440
commit 91d08355b0
@@ -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 ];
};
}