depot/pkgs/development/tools/yaml2json/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

27 lines
625 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "yaml2json";
version = "1.3.3";
src = fetchFromGitHub {
owner = "bronze1man";
repo = "yaml2json";
rev = "v${version}";
hash = "sha256-SDKsmK2YVX+LiF0WQyZOQBpcHFVrBurzqf4xItIfmrE=";
};
vendorHash = "sha256-g+yaVIx4jxpAQ/+WrGKxhVeliYx7nLQe/zsGpxV4Fn4=";
subPackages = [ "." ];
ldflags = [ "-s" "-w" ];
meta = with lib; {
homepage = "https://github.com/bronze1man/yaml2json";
description = "Convert yaml to json";
mainProgram = "yaml2json";
license = with licenses; [ mit ];
maintainers = [ ];
};
}