lmdb: more idiomatic code

This should solve a warning from the r-rmcgibbo bot:
> checkPhase should probably contain runHook preCheck and runHook postCheck
This commit is contained in:
Vladimír Čunát 2021-05-07 20:21:27 +02:00
parent de2e256a29
commit 48a78a5bee
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
++ lib.optional stdenv.isDarwin "LDFLAGS=-Wl,-install_name,$(out)/lib/liblmdb.so"; ++ lib.optional stdenv.isDarwin "LDFLAGS=-Wl,-install_name,$(out)/lib/liblmdb.so";
doCheck = true; doCheck = true;
checkPhase = "make test"; checkTarget = "test";
postInstall = '' postInstall = ''
moveToOutput bin "$bin" moveToOutput bin "$bin"