Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 fetchFromGitHub,
4 buildGoModule,
5}:
6
7buildGoModule rec {
8 pname = "refmt";
9 version = "1.6.1";
10
11 src = fetchFromGitHub {
12 owner = "rjeczalik";
13 repo = "refmt";
14 rev = "v${version}";
15 sha256 = "sha256-HiAWSR2S+3OcIgwdQ0ltW37lcG+OHkDRDUF07rfNcJY=";
16 };
17
18 vendorHash = "sha256-MiYUDEF9W0VAiOX6uE8doXtGAekIrA1cfA8A2a7xd2I=";
19
20 meta = with lib; {
21 description = "Reformat HCL <-> JSON <-> YAML";
22 mainProgram = "refmt";
23 homepage = "https://github.com/rjeczalik/refmt";
24 license = licenses.agpl3Only;
25 maintainers = with lib.maintainers; [ deemp ];
26 };
27}