Files
nixpkgs/pkgs/by-name/at/atomic-swap/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

54 lines
1.1 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
makeWrapper,
monero-cli,
}:
let
pname = "atomic-swap";
version = "0.4.3";
in
buildGoModule {
inherit pname version;
src = fetchFromGitHub {
owner = "AthanorLabs";
repo = "atomic-swap";
rev = "v${version}";
hash = "sha256-MOylUZ6BrvlxUrsZ5gg3JzW9ROG5UXeGhq3YoPZKdHs=";
};
vendorHash = "sha256-fGQ6MI+3z7wRL0y7AUERVtN0V2rcRa+vqeB8+3FMzzc=";
subPackages = [
"cmd/swapcli"
"cmd/swapd"
"cmd/bootnode"
];
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/swapd --prefix PATH : ${lib.makeBinPath [ monero-cli ]}
'';
# integration tests require network access
doCheck = false;
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://github.com/AthanorLabs/atomic-swap";
changelog = "https://github.com/AthanorLabs/atomic-swap/releases/tag/v${version}";
description = "ETH-XMR atomic swap implementation";
license = with lib.licenses; [ lgpl3Only ];
maintainers = with lib.maintainers; [
happysalada
lord-valen
];
};
}