nixpkgs/pkgs/tools/text/gucci/default.nix
Berk D. Demir 17672c8de1 gucci: Disable integration tests.
The version of Ginkgo it relies on might be the problem.

Bug fixed by #173702 runs the previously skipped tests for this
package.
2022-06-01 00:52:20 +00:00

40 lines
1004 B
Nix

{ lib, buildGoModule, fetchFromGitHub, testers, gucci }:
buildGoModule rec {
pname = "gucci";
version = "1.5.4";
src = fetchFromGitHub {
owner = "noqcks";
repo = "gucci";
rev = "refs/tags/${version}";
sha256 = "sha256-HJPNpLRJPnziSMvxLCiNDeCWO439ELSZs/4Cq1a7Amo=";
};
vendorSha256 = "sha256-rAZCj5xtwTgd9/KDYnQTU1jbabtWJF5MCFgcmixDN/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;
};
}