2022-04-06 14:43:09 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, gucci }:
|
2018-11-07 09:21:55 +00:00
|
|
|
|
2022-04-06 14:43:09 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "gucci";
|
2023-07-04 07:59:16 +00:00
|
|
|
version = "1.6.10";
|
2018-11-07 09:21:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "noqcks";
|
|
|
|
repo = "gucci";
|
2022-04-06 14:43:09 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-07-04 07:59:16 +00:00
|
|
|
sha256 = "sha256-bwPQQtaPHby96C5ZHZhBTok+m8GPPS40U1CUPVYqCa4=";
|
2018-11-07 09:21:55 +00:00
|
|
|
};
|
|
|
|
|
2023-03-02 21:57:01 +00:00
|
|
|
vendorHash = "sha256-/4OnbtxxhXQnmSV6UbjgzXdL7szhL9rKiG5BR8FsyqI=";
|
2022-04-06 14:43:09 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X main.AppVersion=${version}" ];
|
|
|
|
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = gucci;
|
|
|
|
};
|
2018-11-07 09:21:55 +00:00
|
|
|
|
2022-04-06 14:43:09 +00:00
|
|
|
checkFlags = [ "-short" ];
|
2018-11-07 09:21:55 +00:00
|
|
|
|
2022-05-01 23:15:08 +00:00
|
|
|
# Integration tests rely on Ginkgo but fail.
|
|
|
|
# Related: https://github.com/onsi/ginkgo/issues/602
|
|
|
|
#
|
|
|
|
# Disable integration tests.
|
|
|
|
preCheck = ''
|
|
|
|
buildFlagsArray+=("-run" "[^(TestIntegration)]")
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-07 09:21:55 +00:00
|
|
|
description = "A simple CLI templating tool written in golang";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/noqcks/gucci";
|
2018-11-07 09:21:55 +00:00
|
|
|
license = licenses.mit;
|
2022-04-06 14:43:09 +00:00
|
|
|
maintainers = with maintainers; [ braydenjw ];
|
2018-11-07 09:21:55 +00:00
|
|
|
};
|
|
|
|
}
|