nixpkgs/pkgs/development/tools/yamlfmt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
607 B
Nix
Raw Normal View History

2023-02-06 22:44:21 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "yamlfmt";
2023-03-22 06:47:30 +01:00
version = "0.8.0";
2023-02-06 22:44:21 +01:00
src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = "v${version}";
2023-03-22 06:47:30 +01:00
sha256 = "sha256-2gcB44tpYXRES0nqLfXt3Srj2NCuQ/iBdv4yxjfmrnk=";
2023-02-06 22:44:21 +01:00
};
2023-03-22 06:47:30 +01:00
vendorHash = "sha256-7Ip6dgpO3sPGXcwymYcaoFydTPIt+BmJC7UqyfltJx0=";
2023-02-06 22:44:21 +01: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 ];
};
}