1{ pkgs ? import <nixpkgs> { } }:
3# https://nixos.wiki/wiki/Packaging/Quirks_and_Caveats
4# https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/protobuf/generic-v3.nix
8 # sha256 = "1nqsvi2yfr93kiwlinz8z7c68ilg1j75b2vcpzxzvripxx5h6xhd";
10 sha256 = "080zxa9w1pxp5y05aiwc0c8mlqkkh98wmid4l7m99cliphsd4qnn";
12 protobufRepo = pkgs.fetchFromGitHub {
13 owner = "protocolbuffers";
19 # # This is pretty much what's in nixpkgs as "protobuf", just `protoc`.
20 # protoc = pkgs.stdenv.mkDerivation {
21 # name = "protoc-${version}";
22 # buildInputs = [ pkgs.autoreconfHook ];
26 # Builds `protoc`, plus the conformance test runners, and also copies
27 # in the .proto files for the conformance test protocol,
28 # especially `./src/google/protobuf/test_messages_proto3.proto`
30 # https://github.com/protocolbuffers/protobuf/tree/master/conformance
32 # See the Travis test runner script
33 # https://github.com/protocolbuffers/protobuf/blob/master/tests.sh
35 # https://laptrinhx.com/an-elixir-library-for-protocol-buffers-2920413944/#conformance
36 protobuf = pkgs.stdenv.mkDerivation {
37 name = "conformance-${version}";
38 nativeBuildInputs = with pkgs; [ autogen automake autoconf libtool rsync ];
42 ./configure --prefix=$out
45 make --jobs=$NIX_BUILD_CORES
56 cp ./test-driver $out/bin/test-driver
57 rsync -am --include='*.proto' --include='*/' --exclude='*' src $out/
58 mkdir -p $out/conformance
59 cp ./conformance/conformance.proto $out/conformance/
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list