Merge #255693: lmdb: don't attempt the .so if static

...into staging-next
This commit is contained in:
Vladimír Čunát
2023-09-21 07:59:43 +02:00
@@ -17,6 +17,11 @@ stdenv.mkDerivation rec {
patches = [ ./hardcoded-compiler.patch ./bin-ext.patch ];
patchFlags = [ "-p3" ];
# Don't attempt the .so if static, as it would fail.
postPatch = lib.optionalString stdenv.hostPlatform.isStatic ''
sed 's/^ILIBS\>.*/ILIBS = liblmdb.a/' -i Makefile
'';
outputs = [ "bin" "out" "dev" ];
buildInputs = lib.optional stdenv.hostPlatform.isWindows windows.pthreads;