v8: add pkgconfig file

This is not provided by the v8 team, we need to provide a custom one.

https://bugs.chromium.org/p/v8/issues/detail?id=2184
This commit is contained in:
Matthew Bauer 2019-09-07 21:09:13 -04:00
parent 26f9a8a573
commit 283358ea42

View file

@ -104,6 +104,17 @@ stdenv.mkDerivation rec {
install -D d8 $out/bin/d8
install -D obj/libv8_monolith.a $out/lib/libv8.a
cp -r ../../include $out
mkdir -p $out/lib/pkgconfig
cat > $out/lib/pkgconfig/v8.pc << EOF
Name: v8
Description: V8 JavaScript Engine
Version: ${version}
Libs: -L$out/lib -lv8 -pthread
Cflags: -I$out/include
Libs: -L$out/lib -lpulse
Cflags: -I$out/include
EOF
'';
meta = with lib; {