nixpkgs-suyu/pkgs/tools/text/gucci/default.nix

32 lines
791 B
Nix
Raw Normal View History

2022-04-06 16:43:09 +02:00
{ lib, buildGoModule, fetchFromGitHub, testers, gucci }:
2022-04-06 16:43:09 +02:00
buildGoModule rec {
pname = "gucci";
2022-04-06 16:43:09 +02:00
version = "1.5.4";
src = fetchFromGitHub {
owner = "noqcks";
repo = "gucci";
2022-04-06 16:43:09 +02:00
rev = "refs/tags/${version}";
sha256 = "sha256-HJPNpLRJPnziSMvxLCiNDeCWO439ELSZs/4Cq1a7Amo=";
};
2022-04-06 16:43:09 +02:00
vendorSha256 = "sha256-rAZCj5xtwTgd9/KDYnQTU1jbabtWJF5MCFgcmixDN/Q=";
ldflags = [ "-s" "-w" "-X main.AppVersion=${version}" ];
passthru.tests.version = testers.testVersion {
package = gucci;
};
2022-04-06 16:43:09 +02:00
checkFlags = [ "-short" ];
meta = with lib; {
description = "A simple CLI templating tool written in golang";
homepage = "https://github.com/noqcks/gucci";
license = licenses.mit;
2022-04-06 16:43:09 +02:00
maintainers = with maintainers; [ braydenjw ];
platforms = platforms.unix;
};
}