nanopb: Use protoc from buildPackages
This fixes cross compilation. (cherry picked from commit d8b35aa96bd0947f9a924fdde09bd43e3fa91053)
This commit is contained in:
parent
d50679e56e
commit
4e14b76286
@ -5,6 +5,7 @@
|
||||
, protobuf
|
||||
, python3
|
||||
, stdenv
|
||||
, buildPackages
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -25,7 +26,7 @@ stdenv.mkDerivation rec {
|
||||
cmakeFlags = [
|
||||
"-DBUILD_SHARED_LIBS=ON" # generate $out/lib/libprotobuf-nanopb.so{.0,}
|
||||
"-DBUILD_STATIC_LIBS=ON" # generate $out/lib/libprotobuf-nanopb.a
|
||||
"-Dnanopb_PROTOC_PATH=${protobuf}/bin/protoc"
|
||||
"-Dnanopb_PROTOC_PATH=${buildPackages.protobuf}/bin/protoc"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user