2023-02-09 11:40:11 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "yamlfmt";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.12.1";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
sha256 = "sha256-VAXDkD4JLoiTomCNtuex/ZEAZtWDEEg5cxETYemvQW8=";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
vendorHash = "sha256-UfULQw7wAEJjTFp6+ACF5Ki04eFKeUEgmbt1c8pUolA=";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Extensible command line tool or library to format yaml files";
|
2023-02-09 11:40:11 +00:00
|
|
|
homepage = "https://github.com/google/yamlfmt";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ sno2wman ];
|
2023-08-10 07:59:29 +00:00
|
|
|
mainProgram = "yamlfmt";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
}
|