dart-sass: 1.83.0 -> 1.83.1 (#372038)
[NixPkgs.git] / pkgs / by-name / be / bee / package.nix
blob9799b0ed79cad3c3af3e5459d3812b1bd35912a1
1 { lib
2 , fetchFromGitHub
3 , buildGoModule
4 }:
6 buildGoModule rec {
7   pname = "bee";
8   version = "2.3.2";
10   src = fetchFromGitHub {
11     owner = "ethersphere";
12     repo = "bee";
13     rev = "v${version}";
14     hash = "sha256-/fyonUp8LxZrnvIk06DnacHlKgSLjIjirGr7MEVU9nc=";
15   };
17   vendorHash = "sha256-kxfdreEGRY9NHxpGwgvdeYBg0m+itEhy7ih1JSD2E44=";
19   subPackages = [ "cmd/bee" ];
21   ldflags = [
22     "-s"
23     "-w"
24     "-X github.com/ethersphere/bee/v2.version=${version}"
25     "-X github.com/ethersphere/bee/v2/pkg/api.Version=5.2.0"
26     "-X github.com/ethersphere/bee/v2/pkg/api.DebugVersion=4.1.1"
27     "-X github.com/ethersphere/bee/v2/pkg/p2p/libp2p.reachabilityOverridePublic=false"
28     "-X github.com/ethersphere/bee/v2/pkg/postage/listener.batchFactorOverridePublic=5"
29   ];
31   env.CGO_ENABLED = 0;
33   postInstall = ''
34     mkdir -p $out/lib/systemd/system
35     cp packaging/bee.service $out/lib/systemd/system/
36     cp packaging/bee-get-addr $out/bin/
37     chmod +x $out/bin/bee-get-addr
38     patchShebangs $out/bin/
39   '';
41   meta = with lib; {
42     homepage = "https://github.com/ethersphere/bee";
43     description = "Ethereum Swarm Bee";
44     longDescription = ''
45       A decentralised storage and communication system for a sovereign digital society.
47       Swarm is a system of peer-to-peer networked nodes that create a decentralised storage
48       and communication service. The system is economically self-sustaining due to a built-in
49       incentive system enforced through smart contracts on the Ethereum blockchain.
51       Bee is a Swarm node implementation, written in Go.
52     '';
53     license = with licenses; [ bsd3 ];
54     maintainers = [ ];
55   };