patches and low-level development discussion
 help / color / mirror / code / Atom feed
cded9c988b3805ef674efbfd6f43f82e66f4959a blob 1091 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
 
{ common-mk, lib, go-protobuf, grpc, openssl, protobuf }:

common-mk {
  pname = "vm_protos";
  platformSubdir = "vm_tools/proto";

  nativeBuildInputs = [ go-protobuf ];
  buildInputs = [ grpc openssl protobuf ];

  platform2Patches = [
    ./0003-common-mk-add-goproto_library-source_relative-opt.patch
    ./0004-vm_tools-proto-set-go_package-correctly.patch
  ];

  NIX_CFLAGS_COMPILE = [
    "-Wno-error=array-bounds"
    "-Wno-error=deprecated-declarations"
  ];

  postPatch = ''
    substituteInPlace common-mk/proto_library.gni \
        --replace /usr/bin/grpc_cpp_plugin ${grpc}/bin/grpc_cpp_plugin
  '';

  installPhase = ''
    mkdir -p $out/lib/pkgconfig
    install -m 644 ../../vm_tools/proto/vm_protos.pc $out/lib/pkgconfig

    headerPath=include/vm_protos/proto_bindings
    mkdir -p $out/$headerPath
    install -m 644 gen/$headerPath/*.h $out/$headerPath

    install -m 644 *.a $out/lib
  '';

  meta = with lib; {
    description = "Protobuf definitions for Chromium OS system VMs";
    maintainers = with maintainers; [ qyliss ];
    platform = platforms.all;
  };
}
debug log:

solving cded9c988b3 ...
found cded9c988b3 in https://spectrum-os.org/git/nixpkgs

Code repositories for project(s) associated with this inbox:

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).