summary refs log tree commit diff
path: root/pkgs/development/tools/yj/default.nix
blob: 017434134ca1ae88f5c65d86d4b6b2fc79d39d6b (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
24
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "yj";
  version = "5.0.0";

  src = fetchFromGitHub {
    owner = "sclevine";
    repo = "yj";
    rev = "c4c13b7641389c76ea028b48091f851f3efb6376";
    sha256 = "0bnb88wfm2vagh4yb1h9xhp3045ga0b6a77n3j2z5b4mvwshx5dr";
  };

  vendorSha256 = "0y0n9fsb85qlpf9slwsxzarmfi98asa4x04qp2r8pagl28l0i8wv";

  ldflags = [ "-s" "-w" "-X main.Version=${version}" ];

  meta = with lib; {
    description = "Convert YAML <=> TOML <=> JSON <=> HCL";
    license = licenses.asl20;
    maintainers = with maintainers; [ Profpatsch ];
    homepage = "https://github.com/sclevine/yj";
  };
}