mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
56 lines
1.6 KiB
Nix
56 lines
1.6 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildGoModule
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "bee";
|
|
version = "2.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ethersphere";
|
|
repo = "bee";
|
|
rev = "v${version}";
|
|
hash = "sha256-FflPGsHF2kZ5eh0bNFtK5aMLon5m5B/se/5PdIIafzo=";
|
|
};
|
|
|
|
vendorHash = "sha256-XbOp0821HeCU5c+es3/UJNF0StDSDKKT+sasBJ+uTLM=";
|
|
|
|
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"
|
|
];
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|