1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "yaml2json";
5 version = "1.3.2";
6
7 src = fetchFromGitHub {
8 owner = "bronze1man";
9 repo = "yaml2json";
10 rev = "v${version}";
11 hash = "sha256-yVA5eV+/TxWN3wzsHy5++IGMAopkCz+PBfjSD+TNKc8=";
12 };
13
14 vendorHash = "sha256-g+yaVIx4jxpAQ/+WrGKxhVeliYx7nLQe/zsGpxV4Fn4=";
15
16 subPackages = [ "." ];
17
18 ldflags = [ "-s" "-w" ];
19
20 meta = with lib; {
21 homepage = "https://github.com/bronze1man/yaml2json";
22 description = "Convert yaml to json";
23 license = with licenses; [ mit ];
24 maintainers = [ maintainers.adisbladis ];
25 };
26}