nixpkgs/pkgs/development/tools/gotest/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

25 lines
585 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "gotest";
version = "0.0.6";
src = fetchFromGitHub {
owner = "rakyll";
repo = pname;
rev = "v${version}";
sha256 = "1v11ccrjghq7nsz0f91r17di14yixsw28vs0m3dwzwqkh1a20img";
};
vendorHash = "sha256-pVq6H1HoKqCMRfJg7FftRf3vh+BWZQe6cQAX+TBzKqw=";
subPackages = [ "." ];
meta = with lib; {
description = "go test with colors";
mainProgram = "gotest";
homepage = "https://github.com/rakyll/gotest";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}