2022-04-27 09:35:20 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, gucci }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gucci";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.6.10";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "noqcks";
|
|
|
|
repo = "gucci";
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-bwPQQtaPHby96C5ZHZhBTok+m8GPPS40U1CUPVYqCa4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
vendorHash = "sha256-/4OnbtxxhXQnmSV6UbjgzXdL7szhL9rKiG5BR8FsyqI=";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X main.AppVersion=${version}" ];
|
|
|
|
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = gucci;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
checkFlags = [
|
|
|
|
"-short"
|
|
|
|
# Integration tests rely on Ginkgo but fail.
|
|
|
|
# Related: https://github.com/onsi/ginkgo/issues/602
|
|
|
|
#
|
|
|
|
# Disable integration tests.
|
|
|
|
"-skip=^TestIntegration"
|
|
|
|
];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A simple CLI templating tool written in golang";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gucci";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/noqcks/gucci";
|
|
|
|
license = licenses.mit;
|
2022-04-27 09:35:20 +00:00
|
|
|
maintainers = with maintainers; [ braydenjw ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|