emscriptenPackages.libxml2: fix build on darwin

+4 -1
+4 -1
pkgs/top-level/emscripten-packages.nix
··· 66 66 echo "Compiling a custom test" 67 67 set -x 68 68 emcc -O2 -s EMULATE_FUNCTION_POINTER_CASTS=1 xmllint.o \ 69 - ./.libs/libxml2.a `pkg-config zlib --cflags` `pkg-config zlib --libs` -o ./xmllint.test.js \ 69 + ./.libs/'' 70 + + pkgs.lib.optionalString pkgs.stdenv.isDarwin "libxml2.dylib " 71 + + pkgs.lib.optionalString (!pkgs.stdenv.isDarwin) "libxml2.a " 72 + + '' `pkg-config zlib --cflags` `pkg-config zlib --libs` -o ./xmllint.test.js \ 70 73 --embed-file ./test/xmlid/id_err1.xml 71 74 72 75 echo "Using node to execute the test which basically outputs an error on stderr which we grep for"