Unverified Commit fdaf4323 authored by Felix Bargfeldt's avatar Felix Bargfeldt Committed by GitHub
Browse files

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

parents 10668ef2 c462991f
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -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; };