2024-02-12 21:00:41 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
}:
|
2021-01-22 15:24:22 +00:00
|
|
|
|
2024-02-12 21:00:41 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "bee";
|
|
|
|
version = "0.5.0";
|
2021-01-22 15:24:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ethersphere";
|
|
|
|
repo = "bee";
|
2024-02-12 21:00:41 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-3Oy9RhgMPRFjUs3Dj8XUhAqoxx5BTi32OiK4Y8YEG2Q=";
|
2021-01-22 15:24:22 +00:00
|
|
|
};
|
|
|
|
|
2024-02-12 21:00:41 +00:00
|
|
|
vendorHash = "sha256-w5ZijaK8Adt1ZHPMmXqRWq0v0jdprRKRu03rePtZLXA=";
|
|
|
|
|
2021-01-22 15:24:22 +00:00
|
|
|
subPackages = [ "cmd/bee" ];
|
|
|
|
|
2024-02-12 21:00:41 +00:00
|
|
|
ldflags = [ "-s" "-w" ];
|
2021-01-22 15:24:22 +00:00
|
|
|
|
2024-02-12 21:00:41 +00:00
|
|
|
CGO_ENABLED = 0;
|
2021-01-22 15:24:22 +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-07 06:42:23 +00:00
|
|
|
homepage = "https://github.com/ethersphere/bee";
|
2021-01-22 15:24:22 +00:00
|
|
|
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 = with maintainers; [ attila-lendvai ];
|
|
|
|
};
|
|
|
|
}
|