Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 27 lines 625 B view raw
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "yaml2json"; 5 version = "1.3.3"; 6 7 src = fetchFromGitHub { 8 owner = "bronze1man"; 9 repo = "yaml2json"; 10 rev = "v${version}"; 11 hash = "sha256-SDKsmK2YVX+LiF0WQyZOQBpcHFVrBurzqf4xItIfmrE="; 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 mainProgram = "yaml2json"; 24 license = with licenses; [ mit ]; 25 maintainers = [ ]; 26 }; 27}