Merge pull request #208376 from urandom2/avalanchego
Fixes https://github.com/NixOS/nixpkgs/issues/208032
This commit is contained in:
commit
b30450191b
2 changed files with 49 additions and 0 deletions
45
pkgs/applications/networking/avalanchego/default.nix
Normal file
45
pkgs/applications/networking/avalanchego/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ IOKit
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, lib
|
||||
, stdenv
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "avalanchego";
|
||||
version = "1.9.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ava-labs";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-7WiIw2k0ZNm6jFHIiJlKuWFdEhb11qGVot1B50Za/GY=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-2ezrasgGkMqr+dUF+TfsM5cevLGAFMyq9FlMxzKola8=";
|
||||
# go mod vendor has a bug, see: https://github.com/golang/go/issues/57529
|
||||
proxyVendor = true;
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ IOKit ];
|
||||
|
||||
subPackages = [ "main" ];
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X github.com/ava-labs/avalanchego/version.GitCommit=${version}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/{main,${pname}}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Go implementation of an Avalanche node";
|
||||
homepage = "https://github.com/ava-labs/avalanchego";
|
||||
changelog = "https://github.com/ava-labs/avalanchego/releases/tag/v${version}";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ urandom ];
|
||||
};
|
||||
}
|
|
@ -27986,6 +27986,10 @@ with pkgs;
|
|||
|
||||
av-98 = callPackage ../applications/networking/browsers/av-98 { };
|
||||
|
||||
avalanchego = callPackage ../applications/networking/avalanchego {
|
||||
inherit (darwin.apple_sdk.frameworks) IOKit;
|
||||
};
|
||||
|
||||
avizo = callPackage ../applications/misc/avizo { };
|
||||
|
||||
avocode = callPackage ../applications/graphics/avocode {};
|
||||
|
|
Loading…
Reference in a new issue