rr: build according to C++14 standard

Avoid breaking the build with capnproto >= 0.7.0
This commit is contained in:
Renaud 2018-10-21 16:18:36 +02:00 committed by GitHub
parent d4e2c90471
commit 17c96ab275
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -17,6 +17,10 @@ stdenv.mkDerivation rec {
patchShebangs .
'';
# TODO: remove this preConfigure hook after 5.2.0 since it is fixed upstream
# see https://github.com/mozilla/rr/issues/2269
preConfigure = ''substituteInPlace CMakeLists.txt --replace "std=c++11" "std=c++14"'';
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
cmake libpfm zlib python2Packages.python python2Packages.pexpect which procps gdb capnproto
@ -49,7 +53,7 @@ stdenv.mkDerivation rec {
time the same execution is replayed.
'';
license = "custom";
license = with stdenv.lib.licenses; [ mit bsd2 ];
maintainers = with stdenv.lib.maintainers; [ pierron thoughtpolice ];
platforms = stdenv.lib.platforms.x86;
};