rapidcheck: Build shared/static following defaults

CMake defaults to static which is not what we want. It is
especially dangerous because this library has global variables ---
embedding multiple copies in downstream shared objects used by the same
final executable will cause problems.
This commit is contained in:
John Ericson
2023-11-21 16:42:27 -05:00
parent a9f295e383
commit b2b9257186
@@ -18,6 +18,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
cmakeFlags = [
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
];
# Install the extras headers
postInstall = ''
cp -r $src/extras $out