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:
parent
26f9a8a573
commit
283358ea42
1 changed files with 11 additions and 0 deletions
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue