nixpkgs/pkgs/development/tools/yj/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
611 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2019-06-21 15:30:57 +00:00
buildGoModule rec {
pname = "yj";
version = "5.1.0";
2019-06-21 15:30:57 +00:00
src = fetchFromGitHub {
owner = "sclevine";
repo = "yj";
rev = "v${version}";
hash = "sha256-lsn5lxtix5W7po6nzvGcHmifbyhrtHgvaKYT7RPPCOg=";
2019-06-21 15:30:57 +00:00
};
vendorHash = "sha256-NeSOoL9wtFzq6ba8ghseB6D+Qq8Z5holQExcAUbtYrs=";
2021-08-26 06:45:51 +00:00
ldflags = [ "-s" "-w" "-X main.Version=${version}" ];
2019-06-21 15:30:57 +00:00
meta = with lib; {
description = "Convert YAML <=> TOML <=> JSON <=> HCL";
2019-06-21 15:30:57 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ Profpatsch ];
homepage = "https://github.com/sclevine/yj";
2019-06-21 15:30:57 +00:00
};
}