about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/refmt/default.nix
blob: 5946e75f3f20fef2c2b0c5ea00a10ece224cf3cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ lib, fetchFromGitHub, buildGoModule }:

buildGoModule rec {
  pname = "refmt";
  version = "1.6.1";

  src = fetchFromGitHub {
    owner = "rjeczalik";
    repo = "refmt";
    rev = "v${version}";
    sha256 = "sha256-HiAWSR2S+3OcIgwdQ0ltW37lcG+OHkDRDUF07rfNcJY=";
  };

  vendorHash = "sha256-MiYUDEF9W0VAiOX6uE8doXtGAekIrA1cfA8A2a7xd2I=";

  meta = with lib; {
    description = "Reformat HCL <-> JSON <-> YAML";
    mainProgram = "refmt";
    homepage = "https://github.com/rjeczalik/refmt";
    license = licenses.agpl3Only;
    maintainers = with lib.maintainers; [ deemp ];
  };
}