3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request from LeSuisse/fetchfromgh-honeycomb

honeymarker, honeyvent, honeytail: uses fetchFromGitHub
This commit is contained in:
Sandro 2023-01-31 11:17:35 +01:00 committed by GitHub
commit cba5b36d45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 21 additions and 15 deletions
pkgs/servers/tracing/honeycomb

View file

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

View file

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

View file

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

View file

@ -1,6 +1,6 @@
generic: { generic: {
v1_6_0 = generic { v1_6_0 = generic {
version = "1.6.0"; version = "1.6.0";
sha256 = "039svpvqjck7s3rq86s29xgcyxl1wr0zj90s3jsyp058zk1dgwdy"; sha256 = "sha256-S0hIgNNzF1eNe+XJs+PT7EUIl5oJCXu+B/zQago4sf8=";
}; };
} }

View file

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

View file

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