Unverified Commit 3d9b0a86 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

golds: 0.7.1 -> 0.7.2, gocovsh: minor refactor (#365107)

parents 57d5ec01 923df37b
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -2,8 +2,7 @@
  lib,
  buildGoModule,
  fetchFromGitHub,
  testers,
  gocovsh, # self
  versionCheckHook,
}:

buildGoModule rec {
@@ -26,7 +25,9 @@ buildGoModule rec {
    "-X main.date=19700101T000000Z"
  ];

  passthru.tests.version = testers.testVersion { package = gocovsh; };
  nativeCheckInputs = [ versionCheckHook ];
  versionCheckProgramArg = [ "--version" ];
  doInstallCheck = true;

  meta = {
    description = "Go Coverage in your terminal: a tool for exploring Go Coverage reports from the command line";
+6 −8
Original line number Diff line number Diff line
@@ -2,19 +2,18 @@
  lib,
  buildGoModule,
  fetchFromGitHub,
  testers,
  golds, # self
  versionCheckHook,
}:

buildGoModule rec {
  pname = "golds";
  version = "0.7.1";
  version = "0.7.2";

  src = fetchFromGitHub {
    owner = "go101";
    repo = "golds";
    tag = "v${version}";
    hash = "sha256-6YkyKJtSAFFYidMlZXSjNpjyIIaTlibg/QMMin/NbU0=";
    hash = "sha256-ExvCVGWYAngasnDHVzBLeLmms4cFNcQ/KzuE4t3r36A=";
  };

  # nixpkgs is not using the go distpack archive and missing a VERSION file in the source
@@ -26,10 +25,9 @@ buildGoModule rec {

  ldflags = [ "-s" ];

  passthru.tests.version = testers.testVersion {
    package = golds;
    version = "v${version}";
  };
  nativeCheckInputs = [ versionCheckHook ];
  versionCheckProgramArg = [ "--version" ];
  doInstallCheck = true;

  meta = {
    description = "Experimental Go local docs server/generator and code reader implemented with some fresh ideas";