Build existing Haskell targets through one pinned Nix checkout

This commit is contained in:
Moritz Angermann committed 2026-10-15 15:54:50 +09:00
1 parent 3056b2f4b3
commit 238289fff7
9 files changed
+295 -15

No files matched your search

+4 -8
View File
@@ -5,7 +5,7 @@ set -eu
repo="https://github.com/simplex-chat/simplex-chat"
u="$USER"
tmp="$(mktemp -d -t)"
tmp="$(mktemp -d)"
folder="$tmp/simplex-chat"
nix_ver="nix-2.22.0"
@@ -105,13 +105,9 @@ build() {
sed -i.bak "s/android.version_code=.*/android.version_code=${vercode}/" "$folder/apps/multiplatform/gradle.properties"
for arch in $arches; do
if [ "$arch" = "armv7a" ]; then
android_simplex_lib="${folder}#hydraJobs.${arch}-android:lib:simplex-chat.x86_64-linux"
android_support_lib="${folder}#hydraJobs.${arch}-android:lib:support.x86_64-linux"
else
android_simplex_lib="${folder}#hydraJobs.x86_64-linux.${arch}-android:lib:simplex-chat"
android_support_lib="${folder}#hydraJobs.x86_64-linux.${arch}-android:lib:support"
fi
# Both ABIs use this checkout and the same compiler selected by flake.lock.
android_simplex_lib="${folder}#hydraJobs.x86_64-linux.${arch}-android:lib:simplex-chat"
android_support_lib="${folder}#hydraJobs.x86_64-linux.${arch}-android:lib:support"
android_simplex_lib_output="${PWD}/result/pkg-${arch}-android-libsimplex.zip"
android_support_lib_output="${PWD}/result/pkg-${arch}-android-libsupport.zip"