yamlfmt: 0.13.0 -> 0.14.0 (#352926)

This commit is contained in:
Ramses
2024-11-03 22:47:12 +01:00
committed by GitHub
+15 -8
View File
@@ -1,23 +1,29 @@
{ lib, buildGoModule, fetchFromGitHub, testers, yamlfmt }:
{
lib,
buildGoModule,
fetchFromGitHub,
testers,
yamlfmt,
}:
buildGoModule rec {
pname = "yamlfmt";
version = "0.13.0";
version = "0.14.0";
src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = "v${version}";
hash = "sha256-B1bRYG7ldewdyK8K2Yy5liQcEqv/3/67cQD8JKp8vQI=";
repo = "yamlfmt";
rev = "refs/tags/v${version}";
hash = "sha256-l9PtVaAKjtP9apTrKCkC1KDR0IXqLqinpj1onzSrPnI=";
};
vendorHash = "sha256-UfULQw7wAEJjTFp6+ACF5Ki04eFKeUEgmbt1c8pUolA=";
vendorHash = "sha256-lsNldfacBoeTPyhkjyDZhI5YR+kDke0TarfG/KdjEOg=";
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
"-X main.commit=${src.rev}"
"-X=main.version=${version}"
"-X=main.commit=${src.rev}"
];
passthru.tests.version = testers.testVersion {
@@ -27,6 +33,7 @@ buildGoModule rec {
meta = with lib; {
description = "Extensible command line tool or library to format yaml files";
homepage = "https://github.com/google/yamlfmt";
changelog = "https://github.com/google/yamlfmt/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ sno2wman ];
mainProgram = "yamlfmt";