depot/third_party/nixpkgs/pkgs/tools/text/gucci/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

39 lines
1,004 B
Nix

{ lib, buildGoModule, fetchFromGitHub, testers, gucci }:
buildGoModule rec {
pname = "gucci";
version = "1.6.5";
src = fetchFromGitHub {
owner = "noqcks";
repo = "gucci";
rev = "refs/tags/${version}";
sha256 = "sha256-x4qCdw+hw1cZ9NY+9eEHksBn+6K0v3QZ1fuT9PX75pc=";
};
vendorSha256 = "sha256-YSAzbilyLip3cbnfVGlbHTW5cxmJyw/FYdYHXAqet+Q=";
ldflags = [ "-s" "-w" "-X main.AppVersion=${version}" ];
passthru.tests.version = testers.testVersion {
package = gucci;
};
checkFlags = [ "-short" ];
# Integration tests rely on Ginkgo but fail.
# Related: https://github.com/onsi/ginkgo/issues/602
#
# Disable integration tests.
preCheck = ''
buildFlagsArray+=("-run" "[^(TestIntegration)]")
'';
meta = with lib; {
description = "A simple CLI templating tool written in golang";
homepage = "https://github.com/noqcks/gucci";
license = licenses.mit;
maintainers = with maintainers; [ braydenjw ];
platforms = platforms.unix;
};
}