Unverified Commit b4eefa72 authored by nixpkgs-ci[bot]'s avatar nixpkgs-ci[bot] Committed by GitHub
Browse files

goshs: 1.1.4 -> 2.0.0-beta.3 (#507944)

parents d9fb9f65 112f0cc8
Loading
Loading
Loading
Loading
+14 −6
Original line number Diff line number Diff line
@@ -2,30 +2,31 @@
  buildGoModule,
  fetchFromGitHub,
  stdenv,
  versionCheckHook,
  lib,
  testers,

  # passthru
  goshs,
}:

buildGoModule (finalAttrs: {
  pname = "goshs";
  version = "1.1.4";
  version = "2.0.0-beta.3";

  src = fetchFromGitHub {
    owner = "patrickhener";
    repo = "goshs";
    tag = "v${finalAttrs.version}";
    hash = "sha256-7z/7dUTDHteAwK78hbrvsHk3Gnv7ZSvaW25sC3vkwW4=";
    hash = "sha256-ELYeabx0hb4oy2RH0yUIt6xTb2rm1eqxZIH+VhEZlvU=";
  };

  vendorHash = "sha256-43Bu4BAmMmd6WrDNztQNCi2OdlzIfbrQC100DkcD4uE=";
  vendorHash = "sha256-EXu1VQWxbKa0EkfqgOL8MDnOCGd8yynP1Bko5wqRCBg=";

  ldflags = [
    "-s"
    "-w"
  ];

  nativeInstallCheckInputs = [ versionCheckHook ];

  doInstallCheck = true;

  preCheck = ''
@@ -41,6 +42,13 @@ buildGoModule (finalAttrs: {
    "-skip=^TestGetIPv4Addr$"
  ];

  # Disabled until https://github.com/patrickhener/goshs/issues/137 is resolved
  # passthru.tests.version = testers.testVersion {
  #   package = goshs;
  #   command = "goshs -v";
  #   version = "goshs ${finalAttrs.version}";
  # };

  meta = {
    description = "Simple, yet feature-rich web server written in Go";
    homepage = "https://goshs.de";