Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildGoModule 3, fetchFromGitHub 4}: 5 6buildGoModule rec { 7 pname = "easyjson"; 8 version = "0.7.7"; 9 10 src = fetchFromGitHub { 11 owner = "mailru"; 12 repo = "easyjson"; 13 rev = "v${version}"; 14 sha256 = "0clifkvvy8f45rv3cdyv58dglzagyvfcqb63wl6rij30c5j2pzc1"; 15 }; 16 vendorSha256 = "sha256-L8u7QQPE2SnskcRrSIwQ4KhsX9xncqDWXJ75ytjxLJ4="; 17 18 subPackages = [ "easyjson" ]; 19 20 meta = with lib; { 21 homepage = "https://github.com/mailru/easyjson"; 22 description = "Fast JSON serializer for Go"; 23 license = licenses.mit; 24 maintainers = with maintainers; [ Madouura ]; 25 }; 26}