home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

default.nix (726B)


      1 { stdenv, lib, buildGoModule, fetchFromGitHub }:
      2 
      3 buildGoModule rec {
      4   name = "gogo-protobuf-${version}";
      5   version = "1.3.1";
      6   rev = "v${version}";
      7 
      8   subPackages = [
      9     "proto"
     10     "gogoproto"
     11     "gogoreplace"
     12     "jsonpb"
     13     "protoc-gen-combo"
     14     "protoc-gen-gofast"
     15     "protoc-gen-gogo"
     16     "protoc-gen-gogofast"
     17     "protoc-gen-gogofaster"
     18     "protoc-gen-gogoslick"
     19     "protoc-gen-gogotypes"
     20     "protoc-gen-gostring"
     21     "protoc-min-version"
     22   ];
     23 
     24   src = fetchFromGitHub {
     25     inherit rev;
     26     owner = "gogo";
     27     repo = "protobuf";
     28     sha256 = "0x77x64sxjgfhmbijqfzmj8h4ar25l2w97h01q3cqs1wk7zfnkhp";
     29   };
     30   vendorHash = "0vkpqdd4x97cl3dm79mh1vic1ir4i20wv9q52sn13vr0b3kja0qy";
     31   modHash = "${vendorHash}";
     32 
     33 }