honeymarker: 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:30:03 +01:00
parent fdaeb50a8d
commit 1e3d6bb770
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 = "honeymarker";
inherit version;
vendorSha256 = "sha256-ZuDobjC/nizZ7G0o/zVTQmDfDjcdBhfPcmkhgwFc7VU=";
src = fetchurl {
url = "https://github.com/honeycombio/honeymarker/archive/refs/tags/v${version}.tar.gz";
inherit sha256;
src = fetchFromGitHub {
owner = "honeycombio";
repo = "honeymarker";
rev = "v${version}";
hash = sha256;
};
inherit (buildGoModule.go) GOOS GOARCH;

View File

@ -1,6 +1,6 @@
generic: {
v0_2_1 = generic {
version = "0.2.1";
sha256 = "0gp427bsc1y7k6j1sqgl8r3kng5b0qhmqd4bpfb9139ivmp2sykk";
sha256 = "sha256-tiwX94CRvXnUYpiux94XhOj2abn1Uc+wjcDOmw79ab4=";
};
}