libconfig: fix static build

the examples are linked dynamically which (obviously) fails if the lib
has been built statically
This commit is contained in:
Michael Adler 2021-07-15 11:20:08 +02:00
parent 6eb202aa16
commit 9ad40cc7a3

View file

@ -11,7 +11,9 @@ stdenv.mkDerivation rec {
doCheck = true;
configureFlags = lib.optional stdenv.targetPlatform.isWindows "--disable-examples";
configureFlags = lib.optional
(stdenv.targetPlatform.isWindows || stdenv.hostPlatform.isStatic)
"--disable-examples";
meta = with lib; {
homepage = "http://www.hyperrealm.com/libconfig";