lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

snappy: build shared library

See https://github.com/NixOS/nixpkgs/commit/f689a6d1c6796c4a4f116ffec6c4624379e04bc9

Closes #32880

+11 -7
+6 -7
pkgs/development/libraries/snappy/default.nix
··· 11 11 sha256 = "1x7r8sjmdqlqjz0xfiwdyrqpgaj5yrvrgb28ivgpvnxgar5qv6m2"; 12 12 }; 13 13 14 + patches = [ ./disable-benchmark.patch ]; 15 + 14 16 outputs = [ "out" "dev" ]; 15 17 16 18 nativeBuildInputs = [ cmake ]; 17 19 18 - # -DNDEBUG for speed 19 - configureFlags = [ "CXXFLAGS=-DNDEBUG" ]; 20 + cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DCMAKE_SKIP_BUILD_RPATH=OFF" ]; 21 + 22 + checkTarget = "test"; 20 23 21 - # SIGILL on darwin 22 - doCheck = !stdenv.isDarwin; 23 - checkPhase = '' 24 - (cd .. && ./build/snappy_unittest) 25 - ''; 24 + doCheck = true; 26 25 27 26 meta = with stdenv.lib; { 28 27 homepage = https://google.github.io/snappy/;
+5
pkgs/development/libraries/snappy/disable-benchmark.patch
··· 1 + --- a/snappy-test.cc 2 + +++ b/snappy-test.cc 3 + @@ -46 +46 @@ 4 + -DEFINE_bool(run_microbenchmarks, true, 5 + +DEFINE_bool(run_microbenchmarks, false,