go-httpbin: 2.21.0 -> 2.22.0 (#509757)

This commit is contained in:
Felix Bargfeldt
2026-04-13 23:03:58 +00:00
committed by GitHub
+5 -7
View File
@@ -2,19 +2,20 @@
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
nixosTests,
nix-update-script,
}:
buildGoModule (finalAttrs: {
pname = "go-httpbin";
version = "2.21.0";
version = "2.22.0";
src = fetchFromGitHub {
owner = "mccutchen";
repo = "go-httpbin";
tag = "v${finalAttrs.version}";
hash = "sha256-QJskXXieiFr406WI8gGtgcoL4pHEVzNOwM6JyYk+0EA=";
hash = "sha256-+DeBJoi7bXuXx3HcO9bdGlCXiaETwsS4OawVBi3Q57o=";
};
vendorHash = null;
@@ -24,17 +25,14 @@ buildGoModule (finalAttrs: {
ldflags = [
"-s"
"-w"
"-X main.version=${finalAttrs.version}"
];
# tests are flaky
doCheck = false;
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
$out/bin/go-httpbin --help &> /dev/null
runHook postInstallCheck
'';
passthru = {
tests = { inherit (nixosTests) go-httpbin; };