depot/third_party/nixpkgs/pkgs/development/tools/yj/default.nix
Default email 4bac34ead1 Project import generated by Copybara.
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
2023-02-09 12:40:11 +01:00

24 lines
611 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "yj";
version = "5.1.0";
src = fetchFromGitHub {
owner = "sclevine";
repo = "yj";
rev = "v${version}";
hash = "sha256-lsn5lxtix5W7po6nzvGcHmifbyhrtHgvaKYT7RPPCOg=";
};
vendorHash = "sha256-NeSOoL9wtFzq6ba8ghseB6D+Qq8Z5holQExcAUbtYrs=";
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";
};
}