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
58 lines
1.6 KiB
Nix
58 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "bee";
|
|
version = "2.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ethersphere";
|
|
repo = "bee";
|
|
rev = "v${version}";
|
|
hash = "sha256-Yz23iVYGZ4PS1jbV5zFaCEsQOoAbHBpePml0zp5GSkQ=";
|
|
};
|
|
|
|
vendorHash = "sha256-0czsloD2EhSWKQbj7NJ4IqGgKM9+Vp8gSIhOKWg/onA=";
|
|
|
|
subPackages = [ "cmd/bee" ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/ethersphere/bee/v2.version=${version}"
|
|
"-X github.com/ethersphere/bee/v2/pkg/api.Version=5.2.0"
|
|
"-X github.com/ethersphere/bee/v2/pkg/api.DebugVersion=4.1.1"
|
|
"-X github.com/ethersphere/bee/v2/pkg/p2p/libp2p.reachabilityOverridePublic=false"
|
|
"-X github.com/ethersphere/bee/v2/pkg/postage/listener.batchFactorOverridePublic=5"
|
|
];
|
|
|
|
env.CGO_ENABLED = 0;
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/lib/systemd/system
|
|
cp packaging/bee.service $out/lib/systemd/system/
|
|
cp packaging/bee-get-addr $out/bin/
|
|
chmod +x $out/bin/bee-get-addr
|
|
patchShebangs $out/bin/
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/ethersphere/bee";
|
|
description = "Ethereum Swarm Bee";
|
|
longDescription = ''
|
|
A decentralised storage and communication system for a sovereign digital society.
|
|
|
|
Swarm is a system of peer-to-peer networked nodes that create a decentralised storage
|
|
and communication service. The system is economically self-sustaining due to a built-in
|
|
incentive system enforced through smart contracts on the Ethereum blockchain.
|
|
|
|
Bee is a Swarm node implementation, written in Go.
|
|
'';
|
|
license = with licenses; [ bsd3 ];
|
|
maintainers = [ ];
|
|
};
|
|
}
|