From 1a4eb869de4038ef72418feb578b05b1c6470fb7 Mon Sep 17 00:00:00 2001 From: shum Date: Sat, 6 Dec 2025 10:32:58 +0000 Subject: [PATCH] nix: strip libraries from debug symbols --- flake.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flake.nix b/flake.nix index 3773c6cfb6..313277dbaf 100644 --- a/flake.nix +++ b/flake.nix @@ -449,6 +449,7 @@ find "$out/_pkg" -type f -exec chmod 644 {} + find "$out/_pkg" -type d -exec chmod 755 {} + find "$out/_pkg" -exec touch -h -d '@0' {} + + find "$out/_pkg" -type f -name "*.so" -exec ${android32Pkgs.stdenv.cc.targetPrefix}strip --strip-unneeded {} + (cd $out/_pkg; ${pkgs.zip}/bin/zip -r -9 -X $out/pkg-armv7a-android-libsimplex.zip *) rm -fR $out/_pkg @@ -565,6 +566,7 @@ find "$out/_pkg" -type f -exec chmod 644 {} + find "$out/_pkg" -type d -exec chmod 755 {} + find "$out/_pkg" -exec touch -h -d '@0' {} + + find "$out/_pkg" -type f -name "*.so" -exec ${androidPkgs.stdenv.cc.targetPrefix}strip --strip-unneeded {} + (cd $out/_pkg; ${pkgs.zip}/bin/zip -r -9 -X $out/pkg-aarch64-android-libsimplex.zip *) rm -fR $out/_pkg