Build with static D runtime config (matches reference Dockerfile)

This commit is contained in:
Hermes committed 2026-08-08 11:52:14 +00:00
1 parent ae00243185
commit 59fcec2e6d
1 file changed
+8 -7
+8 -7
View File
@@ -4,7 +4,6 @@
fetchFromGitHub, fetchFromGitHub,
zlib, zlib,
openssl_1_1, openssl_1_1,
libplist,
}: }:
buildDubPackage rec { buildDubPackage rec {
@@ -20,12 +19,14 @@ buildDubPackage rec {
dubLock = ./dub-lock.json; dubLock = ./dub-lock.json;
# libplist is dlopen'd at runtime by the plist-d C binding (libplist-2.0.so.3). # The reference Dockerfile builds with `dub build -c "static"` (statically
# The reference Docker image installs it explicitly (see Dadoum/anisette-v3-server#46: # linked D runtime). The Android-ELF loader does low-level symbol resolution
# "Anisette did build but not run with current Dockerfile, I have added the # and memory manipulation that is fragile with a dynamically-linked D runtime
# dependencies"). Without it the ADI provisioning step fails silently and the # (GC/TLS conflicts), which can make the ADI provisioning step fail silently.
# server serves unprovisioned data, so Apple rejects the login. # Match the reference build config.
buildInputs = [ zlib openssl_1_1 libplist ]; dubBuildFlags = [ "-c" "static" ];
buildInputs = [ zlib openssl_1_1 ];
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall