tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
emscriptenPackages.libxml2: fix build on darwin
Will Cohen
2 years ago
5d0918ec
3ce34532
+4
-1
1 changed file
expand all
collapse all
unified
split
pkgs
top-level
emscripten-packages.nix
+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
69
-
./.libs/libxml2.a `pkg-config zlib --cflags` `pkg-config zlib --libs` -o ./xmllint.test.js \
69
69
+
./.libs/''
70
70
+
+ pkgs.lib.optionalString pkgs.stdenv.isDarwin "libxml2.dylib "
71
71
+
+ pkgs.lib.optionalString (!pkgs.stdenv.isDarwin) "libxml2.a "
72
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"