mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 12:22:37 +03:00
parent
3445138387
commit
febcb6679f
@ -11,18 +11,17 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1x7r8sjmdqlqjz0xfiwdyrqpgaj5yrvrgb28ivgpvnxgar5qv6m2";
|
sha256 = "1x7r8sjmdqlqjz0xfiwdyrqpgaj5yrvrgb28ivgpvnxgar5qv6m2";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [ ./disable-benchmark.patch ];
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
# -DNDEBUG for speed
|
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];
|
||||||
configureFlags = [ "CXXFLAGS=-DNDEBUG" ];
|
|
||||||
|
|
||||||
# SIGILL on darwin
|
checkTarget = "test";
|
||||||
doCheck = !stdenv.isDarwin;
|
|
||||||
checkPhase = ''
|
doCheck = true;
|
||||||
(cd .. && ./build/snappy_unittest)
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://google.github.io/snappy/;
|
homepage = https://google.github.io/snappy/;
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
--- a/snappy-test.cc
|
||||||
|
+++ b/snappy-test.cc
|
||||||
|
@@ -46 +46 @@
|
||||||
|
-DEFINE_bool(run_microbenchmarks, true,
|
||||||
|
+DEFINE_bool(run_microbenchmarks, false,
|
Loading…
Reference in New Issue
Block a user