mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
httptap: 0.0.8 -> 0.1.1 (#403211)
This commit is contained in:
commit
8476dca5cb
1 changed files with 7 additions and 20 deletions
|
@ -2,37 +2,24 @@
|
||||||
lib,
|
lib,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
fetchpatch,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule (finalAttrs: {
|
||||||
pname = "httptap";
|
pname = "httptap";
|
||||||
version = "0.0.8";
|
version = "0.1.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "monasticacademy";
|
owner = "monasticacademy";
|
||||||
repo = "httptap";
|
repo = "httptap";
|
||||||
tag = "v${version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-1BtV5ao5dAKSINdUdJD/wxTMFXXiP8Vy1A7gQfVIsUQ=";
|
hash = "sha256-Cn5u6q0r06SJp4uhF7j5K6yNZv8Q3WNxlDd5Vxmshhw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
vendorHash = "sha256-yTtUt+kfDwN6W4caHCAYFjpYzhaqZUbLe+Nz7JKAXu8=";
|
||||||
# this patch updates go.mod to include missing dependencies
|
|
||||||
# https://github.com/monasticacademy/httptap/pull/13
|
|
||||||
(fetchpatch {
|
|
||||||
name = "update-go-mod";
|
|
||||||
url = "https://github.com/monasticacademy/httptap/commit/3b520725c784d6435be6a51c58ae847bae729962.patch";
|
|
||||||
hash = "sha256-0dPq0Ldu1m8YZKctFtoUcbQdmx6sqjA8EVhTeMwNWx8=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
vendorHash = "sha256-+TtHw2KdeNHCgnMnkxJJ9shqsrlbeTzYwbPH0dJmCjM=";
|
|
||||||
|
|
||||||
env.CGO_ENABLED = 0;
|
env.CGO_ENABLED = 0;
|
||||||
|
|
||||||
subPackages = [
|
subPackages = [ "." ];
|
||||||
"."
|
|
||||||
];
|
|
||||||
|
|
||||||
ldflags = [
|
ldflags = [
|
||||||
"-s"
|
"-s"
|
||||||
|
@ -46,4 +33,4 @@ buildGoModule rec {
|
||||||
maintainers = with lib.maintainers; [ jpetrucciani ];
|
maintainers = with lib.maintainers; [ jpetrucciani ];
|
||||||
mainProgram = "httptap";
|
mainProgram = "httptap";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue