2024-02-29 20:09:43 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
}:
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "bee";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "2.1.0";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ethersphere";
|
|
|
|
repo = "bee";
|
2024-02-29 20:09:43 +00:00
|
|
|
rev = "v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
sha256 = "sha256-FflPGsHF2kZ5eh0bNFtK5aMLon5m5B/se/5PdIIafzo=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
vendorHash = "sha256-XbOp0821HeCU5c+es3/UJNF0StDSDKKT+sasBJ+uTLM=";
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
subPackages = [ "cmd/bee" ];
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
2024-04-21 15:54:59 +00:00
|
|
|
"-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"
|
2024-02-29 20:09:43 +00:00
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
CGO_ENABLED = 0;
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
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; {
|
2022-01-13 20:06:32 +00:00
|
|
|
homepage = "https://github.com/ethersphere/bee";
|
2021-02-05 17:12:51 +00:00
|
|
|
description = "Ethereum Swarm Bee";
|
|
|
|
longDescription = ''
|
|
|
|
A decentralised storage and communication system for a sovereign digital society.
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
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.
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
Bee is a Swarm node implementation, written in Go.
|
|
|
|
'';
|
|
|
|
license = with licenses; [ bsd3 ];
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
}
|