depot/third_party/nixpkgs/pkgs/tools/text/gucci/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

38 lines
963 B
Nix

{ lib, buildGoModule, fetchFromGitHub, testers, gucci }:
buildGoModule rec {
pname = "gucci";
version = "1.6.10";
src = fetchFromGitHub {
owner = "noqcks";
repo = "gucci";
rev = "refs/tags/${version}";
sha256 = "sha256-bwPQQtaPHby96C5ZHZhBTok+m8GPPS40U1CUPVYqCa4=";
};
vendorHash = "sha256-/4OnbtxxhXQnmSV6UbjgzXdL7szhL9rKiG5BR8FsyqI=";
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.
"-skip=^TestIntegration"
];
meta = with lib; {
description = "Simple CLI templating tool written in golang";
mainProgram = "gucci";
homepage = "https://github.com/noqcks/gucci";
license = licenses.mit;
maintainers = with maintainers; [ braydenjw ];
};
}