From e9596668d6ff62b409db99a0d17edd6149eaf447 Mon Sep 17 00:00:00 2001 From: t4ccer Date: Fri, 17 Nov 2023 20:12:55 -0700 Subject: [PATCH] blink: Fix static compilation --- pkgs/applications/emulators/blink/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/applications/emulators/blink/default.nix b/pkgs/applications/emulators/blink/default.nix index bdaf36bf6615..d939b99add88 100644 --- a/pkgs/applications/emulators/blink/default.nix +++ b/pkgs/applications/emulators/blink/default.nix @@ -19,6 +19,15 @@ stdenv.mkDerivation (finalAttrs: { }) ]; + # Do not include --enable-static and --disable-shared flags during static compilation + dontAddStaticConfigureFlags = true; + + # Don't add --build and --host flags as they are not supported + configurePlatforms = lib.optionals stdenv.hostPlatform.isStatic [ ]; + + # ./configure script expects --static not standard --enable-static + configureFlags = lib.optional stdenv.hostPlatform.isStatic "--static"; + # 'make check' requires internet connection doCheck = true; checkTarget = "test";