Merge pull request #322310 from aaronjheng/yamlfmt

yamlfmt: 0.12.1 -> 0.13.0
This commit is contained in:
Weijia Wang
2024-06-30 11:20:40 +02:00
committed by GitHub
+13 -4
View File
@@ -1,19 +1,28 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub, testers, yamlfmt }:
buildGoModule rec {
pname = "yamlfmt";
version = "0.12.1";
version = "0.13.0";
src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = "v${version}";
sha256 = "sha256-VAXDkD4JLoiTomCNtuex/ZEAZtWDEEg5cxETYemvQW8=";
hash = "sha256-B1bRYG7ldewdyK8K2Yy5liQcEqv/3/67cQD8JKp8vQI=";
};
vendorHash = "sha256-UfULQw7wAEJjTFp6+ACF5Ki04eFKeUEgmbt1c8pUolA=";
doCheck = false;
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
"-X main.commit=${src.rev}"
];
passthru.tests.version = testers.testVersion {
package = yamlfmt;
};
meta = with lib; {
description = "Extensible command line tool or library to format yaml files";