From 1bfb1d72b0b266496723f5c4d87c2ae25592478f Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Sat, 26 Oct 2024 21:30:28 +0800 Subject: [PATCH] avalanchego: 1.11.11 -> 1.12.0-initial-poc.6 --- pkgs/by-name/av/avalanchego/package.nix | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/av/avalanchego/package.nix b/pkgs/by-name/av/avalanchego/package.nix index 8b37a1f1b6b9b..89426790288d5 100644 --- a/pkgs/by-name/av/avalanchego/package.nix +++ b/pkgs/by-name/av/avalanchego/package.nix @@ -1,27 +1,28 @@ { - IOKit, + darwin, buildGoModule, fetchFromGitHub, lib, + nix-update-script, stdenv, }: buildGoModule rec { pname = "avalanchego"; - version = "1.11.11"; + version = "1.12.0-initial-poc.6"; src = fetchFromGitHub { owner = "ava-labs"; repo = pname; rev = "v${version}"; - hash = "sha256-9NhwxB5AeGvQgZbjNu5WWHiP194ws7s1WDtCntLr//g="; + hash = "sha256-LBwmoegsBWC2xlTc3BJDxyYX58b+X7g5xl9vnThVHW0="; }; - vendorHash = "sha256-A8Bf/KzTFvC/hFLU1k6M89649wjoqnIXRQ1uJaTj9YA="; - # go mod vendor has a bug, see: https://github.com/golang/go/issues/57529 - proxyVendor = true; + vendorHash = "sha256-770JE4vQUlrEEfF6iRjEGj0Xfg3Q4o8vxKbL0cr1bJM="; - buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ IOKit ]; + buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ + darwin.apple_sdk.frameworks.IOKit + ]; subPackages = [ "main" ]; @@ -35,12 +36,14 @@ buildGoModule rec { mv $out/bin/{main,${pname}} ''; - meta = with lib; { + passthru.updateScript = nix-update-script { }; + + meta = { 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; [ + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ urandom qjoly ];