summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/re/refmt/package.nix
blob: 072768c4da325de8bb7de7cea4e34bed82435bb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
  lib,
  fetchFromGitHub,
  buildGoModule,
}:

buildGoModule (finalAttrs: {
  pname = "refmt";
  version = "1.6.1";

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

  vendorHash = "sha256-MiYUDEF9W0VAiOX6uE8doXtGAekIrA1cfA8A2a7xd2I=";

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