2023-02-09 11:40:11 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "yamlfmt";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.11.0";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
sha256 = "sha256-7+ui5jEJkjejAZRdM+okoF3Qw8SJSTKJS7LNNnBgz0g=";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
vendorHash = "sha256-JiFVc2+LcCgvnEX6W4XBtIgXcILEO2HZT4DTp62eUJU=";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An extensible command line tool or library to format yaml files.";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|