honeyvent: uses fetchFromGitHub

The archive hash has changed.
See https://github.blog/changelog/2023-01-30-git-archive-checksums-may-change/
This commit is contained in:
Thomas Gerbet 2023-01-30 23:25:31 +01:00
parent 2caf4ef500
commit 7967aebe4b
2 changed files with 7 additions and 5 deletions

View file

@ -1,13 +1,15 @@
{ lib, buildGoModule, fetchurl }:
{ lib, buildGoModule, fetchFromGitHub }:
import ./versions.nix ({version, sha256}:
buildGoModule {
pname = "honeyvent";
inherit version;
vendorSha256 = null;
src = fetchurl {
url = "https://github.com/honeycombio/honeyvent/archive/refs/tags/v${version}.tar.gz";
inherit sha256;
src = fetchFromGitHub {
owner = "honeycombio";
repo = "honeyvent";
rev = "v${version}";
hash = sha256;
};
inherit (buildGoModule.go) GOOS GOARCH;

View file

@ -1,6 +1,6 @@
generic: {
v1_1_0 = generic {
version = "1.1.0";
sha256 = "0ar2m25ngdd1wk7d70j2781wbrvhjhf9cj9qvp24jjrhqng6hvn7";
sha256 = "sha256-yFQEOshjaH6fRCQ7IZChANI9guZlTXk35p1NzQvxUdI=";
};
}