trezord: rebuild protobuf files

This allows it to build with Protobuf 3.6
This commit is contained in:
Nikolay Amiantov 2017-09-11 23:26:40 +03:00
parent f3ecd570ed
commit 27a4820c74

View File

@ -1,4 +1,4 @@
{ stdenv, fetchgit, curl, cmake, boost, gcc, protobuf, pkgconfig, jsoncpp
{ stdenv, fetchgit, fetchFromGitHub, curl, cmake, boost, gcc, protobuf, pkgconfig, jsoncpp
, libusb1, libmicrohttpd
}:
@ -15,6 +15,13 @@ stdenv.mkDerivation rec {
sha256 = "1iaxmwyidjdcrc6jg0859v6v5x3qnz5b0p78pq0bypvmgyijhpm4";
};
common = fetchFromGitHub {
owner = "trezor";
repo = "trezor-common";
rev = "b55fb61218431e9c99c9d6c1673801902fc9e92e";
sha256 = "1zanbgz1qjs8wfwp0z91sqcvj77a9iis694k415jyd2dn4riqhdg";
};
meta = with stdenv.lib; {
description = "TREZOR Bridge daemon for TREZOR bitcoin hardware wallet";
homepage = https://mytrezor.com;
@ -40,8 +47,15 @@ stdenv.mkDerivation rec {
jsoncpp
];
preConfigure = ''
( cd src/config
ln -s $common/protob/config.proto
protoc -I . --cpp_out=. config.proto
)
'';
LD_LIBRARY_PATH = "${stdenv.lib.makeLibraryPath [ curl ]}";
cmakeFlags="-DJSONCPP_LIBRARY='${jsoncpp}/lib/libjsoncpp.so'";
cmakeFlags = [ "-DJSONCPP_LIBRARY='${jsoncpp}/lib/libjsoncpp.so'" ];
installPhase = ''
mkdir -p $out/bin