diff options
Diffstat (limited to 'pkgs/applications/blockchains/atomic-swap/default.nix')
-rw-r--r-- | pkgs/applications/blockchains/atomic-swap/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/applications/blockchains/atomic-swap/default.nix b/pkgs/applications/blockchains/atomic-swap/default.nix new file mode 100644 index 000000000000..3e8ebcc947a9 --- /dev/null +++ b/pkgs/applications/blockchains/atomic-swap/default.nix @@ -0,0 +1,36 @@ +{ lib, buildGoModule, fetchFromGitHub, nix-update-script }: + +let + pname = "atomic-swap"; + version = "0.4.0"; +in +buildGoModule { + inherit pname version; + + src = fetchFromGitHub { + owner = "AthanorLabs"; + repo = "atomic-swap"; + rev = "v${version}"; + hash = "sha256-wVLufTC7WcRELhzebzLgIUvIWklEY+8/C41FluPkya0="; + }; + + vendorSha256 = "sha256-igHuklt76r7MDxz8TAaFgFdQS7L3DJkMYarAMNVYTC4="; + + subPackages = [ + "cmd/swapcli" + "cmd/swapd" + "cmd/bootnode" + ]; + + # integration tests require network access + doCheck = false; + + passthru.updateScript = nix-update-script { }; + + meta = with lib; { + homepage = "https://github.com/AthanorLabs/atomic-swap"; + description = "ETH-XMR atomic swap implementation"; + license = with licenses; [ gpl3Only ]; + maintainers = with maintainers; [ happysalada ]; + }; +} |