Monorepo for Tangled tangled.org
854
fork

Configure Feed

Select the types of activity you want to include in your feed.

Appview fails to build via Nix on aarch64 darwin #188

open opened by uncenter.dev
ld: warning: directory not found for option '-L/nix/store/bwv187cdmgz3f5vyinn4b9pv8l50ml8f-clang-16.0.6-lib/aarch64-apple-darwin/lib'
Undefined symbols for architecture arm64:
  "_iconv", referenced from:
      _xmlIconvWrapper in libxml2.a(libxml2_la-encoding.o)
      _xmlCharEncOutput in libxml2.a(libxml2_la-encoding.o)
      _xmlCharEncOutFunc in libxml2.a(libxml2_la-encoding.o)
      _xmlByteConsumed in libxml2.a(libxml2_la-encoding.o)
  "_iconv_close", referenced from:
      _xmlFindExtraHandler in libxml2.a(libxml2_la-encoding.o)
      _xmlCharEncCloseFunc in libxml2.a(libxml2_la-encoding.o)
  "_iconv_open", referenced from:
      _xmlFindExtraHandler in libxml2.a(libxml2_la-encoding.o)
ld: symbol(s) not found for architecture arm64
clang-16: error: linker command failed with exit code 1 (use -v to see invocation)

I tried to to add libiconv to buildInputs like so with no change in result:

diff --git i/flake.nix w/flake.nix
index d4092fd..ac9aee7 100644
--- i/flake.nix
+++ w/flake.nix
@@ -69,6 +69,7 @@
           pname = "appview";
           version = "0.1.0";
           src = gitignoreSource ./.;
+          buildInputs =  lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
           postUnpack = ''
             pushd source
             mkdir -p appview/pages/static/{fonts,icons}
[deleted by author]
sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:rkm6m4dsc4da2yzdlvxorhf3/sh.tangled.repo.issue/3llgzgj7p7m22