libpeas-2 fails to build on NixOS: js/Array.h: No such file or directory
Hi, I am not able to build libpeas-2 1.99.0 on NixOS, will appreciate some help here.
../loaders/gjs/peas-plugin-loader-gjs.cpp:27:10: fatal error: js/Array.h: No such file or directory
27 | #include <js/Array.h>
| ^~~~~~~~~~~~
compilation terminated.
Full log:
building '/nix/store/9pm5sndrdlc8n4ycdj41p81ck5f6sf2w-libpeas-1.99.0.drv'...
unpacking sources
unpacking source archive /nix/store/dvyqyqcwqqr8pyhhci028jnl9wyf4mhi-libpeas-1.99.0.tar.xz
source root is libpeas-1.99.0
setting SOURCE_DATE_EPOCH to timestamp 1688149444 of file libpeas-1.99.0/tests/valgrind.suppressions
patching sources
updateAutotoolsGnuConfigScriptsPhase
configuring
meson flags: --buildtype=plain --libdir=/nix/store/8nqbm8nwbvj6k9z4sxmlci6vkizrnsaz-libpeas-1.99.0/lib --libexecdir=/nix/store/8nqbm8nwbvj6k9z4sxmlci6vkizrnsaz-libpeas-1.99.0/libexec --bindir=/nix/store/8nqbm8nwbvj6k9z4sxmlci6vkizrnsaz-libpeas-1.99.0/bin --sbindir=/nix/store/8nqbm8nwbvj6k9z4sxmlci6vkizrnsaz-libpeas-1.99.0/sbin --includedir=/nix/store/1gcscydrm9608spnb4gi8jb4p58vpr2r-libpeas-1.99.0-dev/include --mandir=/nix/store/8nqbm8nwbvj6k9z4sxmlci6vkizrnsaz-libpeas-1.99.0/share/man --infodir=/nix/store/8nqbm8nwbvj6k9z4sxmlci6vkizrnsaz-libpeas-1.99.0/share/info --localedir=/nix/store/8nqbm8nwbvj6k9z4sxmlci6vkizrnsaz-libpeas-1.99.0/share/locale -Dauto_features=enabled -Dwrap_mode=nodownload --prefix=/nix/store/8nqbm8nwbvj6k9z4sxmlci6vkizrnsaz-libpeas-1.99.0 -Dgtk_doc=true
The Meson build system
Version: 1.1.1
Source dir: /build/libpeas-1.99.0
Build dir: /build/libpeas-1.99.0/build
Build type: native build
Project name: libpeas
Project version: 1.99.0
C compiler for the host machine: gcc (gcc 12.3.0 "gcc (GCC) 12.3.0")
C linker for the host machine: gcc ld.bfd 2.40
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /nix/store/bwcp6wcad0ddz7ds8zs7c632z8jpfqs3-pkg-config-wrapper-0.29.2/bin/pkg-config (0.29.2)
Run-time dependency glib-2.0 found: YES 2.76.4
Run-time dependency gobject-2.0 found: YES 2.76.4
Run-time dependency gmodule-2.0 found: YES 2.76.4
Run-time dependency gio-2.0 found: YES 2.76.4
Run-time dependency gobject-introspection-1.0 found: YES 1.76.1
Found pkg-config: /nix/store/bwcp6wcad0ddz7ds8zs7c632z8jpfqs3-pkg-config-wrapper-0.29.2/bin/pkg-config (0.29.2)
Build-time dependency gi-docgen found: YES 2023.1
Run-time dependency gjs-1.0 found: YES 1.77.1
Run-time dependency python3-embed found: YES 3.10
Run-time dependency pygobject-3.0 found: YES 3.44.1
Run-time dependency lua51 found: YES 5.1.5
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency luajit found: NO (tried pkgconfig and cmake)
Program lua5.1 found: NO
Program lua found: YES (/nix/store/zbpbkp6svg6szmq30q547ghdr13zafja-lua-5.1.5/bin/lua)
Program luajit found: NO
Program xmllint found: NO
Program vapigen found: NO
WARNING: You should add the boolean check kwarg to the run_command call.
It currently defaults to false,
but it will default to true in future releases of meson.
See also: https://github.com/mesonbuild/meson/issues/9300
Message: lua-lgi version: 0.9.2
Compiler for C supports arguments -Wcast-align: YES
Compiler for C supports arguments -Wdeclaration-after-statement: YES
Compiler for C supports arguments -Werror=address: YES
Compiler for C supports arguments -Werror=array-bounds: YES
Compiler for C supports arguments -Werror=empty-body: YES
Compiler for C supports arguments -Werror=implicit: YES
Compiler for C supports arguments -Werror=implicit-function-declaration: YES
Compiler for C supports arguments -Werror=incompatible-pointer-types: YES
Compiler for C supports arguments -Werror=init-self: YES
Compiler for C supports arguments -Werror=int-conversion: YES
Compiler for C supports arguments -Werror=int-to-pointer-cast: YES
Compiler for C supports arguments -Werror=main: YES
Compiler for C supports arguments -Werror=misleading-indentation: YES
Compiler for C supports arguments -Werror=missing-braces: YES
Compiler for C supports arguments -Werror=missing-include-dirs: YES
Compiler for C supports arguments -Werror=nonnull: YES
Compiler for C supports arguments -Werror=overflow: YES
Compiler for C supports arguments -Werror=parenthesis: NO
Compiler for C supports arguments -Werror=pointer-arith: YES
Compiler for C supports arguments -Werror=pointer-to-int-cast: YES
Compiler for C supports arguments -Werror=redundant-decls: YES
Compiler for C supports arguments -Werror=return-type: YES
Compiler for C supports arguments -Werror=sequence-point: YES
Compiler for C supports arguments -Werror=shadow: YES
Compiler for C supports arguments -Werror=trigraphs: YES
Compiler for C supports arguments -Werror=undef: YES
Compiler for C supports arguments -Werror=write-strings: YES
Compiler for C supports arguments -Wformat-nonliteral: YES
Compiler for C supports arguments -Werror=format-security -Werror=format=2: YES
Compiler for C supports arguments -Wignored-qualifiers: YES
Compiler for C supports arguments -Wimplicit-function-declaration: YES
Compiler for C supports arguments -Wlogical-op: YES
Compiler for C supports arguments -Wmissing-declarations: YES
Compiler for C supports arguments -Wmissing-format-attribute: YES
Compiler for C supports arguments -Wmissing-include-dirs: YES
Compiler for C supports arguments -Wmissing-noreturn: YES
Compiler for C supports arguments -Wnested-externs: YES
Compiler for C supports arguments -Wno-cast-function-type: YES
Compiler for C supports arguments -Wno-dangling-pointer: YES
Compiler for C supports arguments -Wno-missing-field-initializers: YES
Compiler for C supports arguments -Wno-sign-compare: YES
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -Wold-style-definition: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Wredundant-decls: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wswitch-default: YES
Compiler for C supports arguments -Wswitch-enum: YES
Compiler for C supports arguments -Wundef: YES
Compiler for C supports arguments -Wuninitialized: YES
Compiler for C supports arguments -Wunused: YES
Compiler for C supports arguments -fno-strict-aliasing: YES
Compiler for C supports link arguments -Wl,-z,relro: YES
Compiler for C supports link arguments -Wl,-z,now: YES
Compiler for C supports link arguments -Wl,-Bsymbolic: YES
Compiler for C supports link arguments -fno-plt: YES
Compiler for C supports arguments -fvisibility=hidden: YES
Configuring config.h using configuration
Program copyfile.py found: YES (/nix/store/jhflvwr40xbb0xr6jx4311icp9cym1fp-python3-3.10.12/bin/python3.10 /build/libpeas-1.99.0/copyfile.py)
Configuring peas-version.h using configuration
Program glib-genmarshal found: YES (/nix/store/dcwr090bqdp45z21cdzx6pngacch97mb-glib-2.76.4-dev/bin/glib-genmarshal)
Dependency gobject-introspection-1.0 found: YES 1.76.1 (cached)
Dependency gobject-introspection-1.0 found: YES 1.76.1 (cached)
Program g-ir-scanner found: YES (/nix/store/50s9syy15j9jgfgpa801ywp0ir7f5brb-gobject-introspection-1.76.1-dev/bin/g-ir-scanner)
Dependency gobject-introspection-1.0 found: YES 1.76.1 (cached)
Program g-ir-compiler found: YES (/nix/store/50s9syy15j9jgfgpa801ywp0ir7f5brb-gobject-introspection-1.76.1-dev/bin/g-ir-compiler)
Configuring libpeas.toml using configuration
Program gi-docgen found: YES (/nix/store/rqafi9528q22ci5ad2410v90zz2g40k2-gi-docgen-2023.1/bin/gi-docgen)
Program msgfmt found: YES (/nix/store/shrgrfjrjc05d6bqafm45ycnm19h06l3-gettext-0.21.1/bin/msgfmt)
Program msginit found: YES (/nix/store/shrgrfjrjc05d6bqafm45ycnm19h06l3-gettext-0.21.1/bin/msginit)
Program msgmerge found: YES (/nix/store/shrgrfjrjc05d6bqafm45ycnm19h06l3-gettext-0.21.1/bin/msgmerge)
Program xgettext found: YES (/nix/store/shrgrfjrjc05d6bqafm45ycnm19h06l3-gettext-0.21.1/bin/xgettext)
Program glib-compile-resources found: YES (/nix/store/dcwr090bqdp45z21cdzx6pngacch97mb-glib-2.76.4-dev/bin/glib-compile-resources)
Program glib-compile-resources found: YES (/nix/store/dcwr090bqdp45z21cdzx6pngacch97mb-glib-2.76.4-dev/bin/glib-compile-resources)
loaders/gjs/meson.build:1: WARNING: add_languages is missing native:, assuming languages are wanted for both host and build.
C++ compiler for the host machine: g++ (gcc 12.3.0 "g++ (GCC) 12.3.0")
C++ linker for the host machine: g++ ld.bfd 2.40
Compiler for C++ supports arguments -Wno-missing-field-initializers: YES
Compiler for C++ supports arguments -Wno-unused-parameter: YES
Program glib-compile-resources found: YES (/nix/store/dcwr090bqdp45z21cdzx6pngacch97mb-glib-2.76.4-dev/bin/glib-compile-resources)
Configuring extension-python.gschema.xml using configuration
Configuring extension-python.plugin using configuration
Configuring extension-python.py using configuration
Message:
------
libpeas 1.99.0 (2)
Documentation: true
Introspection: true
Loaders:
GJS support: true
Lua 5.1 support: true
Python 3 support: true
Directories:
prefix: /nix/store/8nqbm8nwbvj6k9z4sxmlci6vkizrnsaz-libpeas-1.99.0
includedir: /nix/store/1gcscydrm9608spnb4gi8jb4p58vpr2r-libpeas-1.99.0-dev/include
libdir: /nix/store/8nqbm8nwbvj6k9z4sxmlci6vkizrnsaz-libpeas-1.99.0/lib
------
Build targets in project: 120
libpeas 1.99.0
User defined options
auto_features: enabled
bindir : /nix/store/8nqbm8nwbvj6k9z4sxmlci6vkizrnsaz-libpeas-1.99.0/bin
buildtype : plain
includedir : /nix/store/1gcscydrm9608spnb4gi8jb4p58vpr2r-libpeas-1.99.0-dev/include
infodir : /nix/store/8nqbm8nwbvj6k9z4sxmlci6vkizrnsaz-libpeas-1.99.0/share/info
libdir : /nix/store/8nqbm8nwbvj6k9z4sxmlci6vkizrnsaz-libpeas-1.99.0/lib
libexecdir : /nix/store/8nqbm8nwbvj6k9z4sxmlci6vkizrnsaz-libpeas-1.99.0/libexec
localedir : /nix/store/8nqbm8nwbvj6k9z4sxmlci6vkizrnsaz-libpeas-1.99.0/share/locale
mandir : /nix/store/8nqbm8nwbvj6k9z4sxmlci6vkizrnsaz-libpeas-1.99.0/share/man
prefix : /nix/store/8nqbm8nwbvj6k9z4sxmlci6vkizrnsaz-libpeas-1.99.0
sbindir : /nix/store/8nqbm8nwbvj6k9z4sxmlci6vkizrnsaz-libpeas-1.99.0/sbin
wrap_mode : nodownload
gtk_doc : true
Found ninja-1.11.1 at /nix/store/h2jf0p85w3jqqw4apn7bqwy7wjmm1xm3-ninja-1.11.1/bin/ninja
meson: enabled parallel building
meson: enabled parallel installing
building
build flags: -j8
[1/168] Generating po/ab/LC_MESSAGES/libpeas-2-ab.mo with a custom command
[2/168] Generating po/an/LC_MESSAGES/libpeas-2-an.mo with a custom command
[3/168] Generating po/ar/LC_MESSAGES/libpeas-2-ar.mo with a custom command
[4/168] Generating po/ast/LC_MESSAGES/libpeas-2-ast.mo with a custom command
[5/168] Generating po/be/LC_MESSAGES/libpeas-2-be.mo with a custom command
[6/168] Generating po/bg/LC_MESSAGES/libpeas-2-bg.mo with a custom command
[7/168] Generating po/as/LC_MESSAGES/libpeas-2-as.mo with a custom command
[8/168] Generating po/bs/LC_MESSAGES/libpeas-2-bs.mo with a custom command
[9/168] Generating po/bn_IN/LC_MESSAGES/libpeas-2-bn_IN.mo with a custom command
[10/168] Generating po/ca/LC_MESSAGES/libpeas-2-ca.mo with a custom command
[11/168] Generating po/ca@valencia/LC_MESSAGES/libpeas-2-ca@valencia.mo with a custom command
[12/168] Generating po/cs/LC_MESSAGES/libpeas-2-cs.mo with a custom command
[13/168] Generating po/da/LC_MESSAGES/libpeas-2-da.mo with a custom command
[14/168] Generating po/de/LC_MESSAGES/libpeas-2-de.mo with a custom command
[15/168] Generating po/el/LC_MESSAGES/libpeas-2-el.mo with a custom command
[16/168] Generating po/en_GB/LC_MESSAGES/libpeas-2-en_GB.mo with a custom command
[17/168] Generating po/eo/LC_MESSAGES/libpeas-2-eo.mo with a custom command
[18/168] Generating po/et/LC_MESSAGES/libpeas-2-et.mo with a custom command
[19/168] Generating po/es/LC_MESSAGES/libpeas-2-es.mo with a custom command
[20/168] Generating po/eu/LC_MESSAGES/libpeas-2-eu.mo with a custom command
[21/168] Generating po/fa/LC_MESSAGES/libpeas-2-fa.mo with a custom command
[22/168] Generating po/fr/LC_MESSAGES/libpeas-2-fr.mo with a custom command
[23/168] Generating po/fi/LC_MESSAGES/libpeas-2-fi.mo with a custom command
[24/168] Generating po/fur/LC_MESSAGES/libpeas-2-fur.mo with a custom command
[25/168] Generating po/gl/LC_MESSAGES/libpeas-2-gl.mo with a custom command
[26/168] Generating po/gu/LC_MESSAGES/libpeas-2-gu.mo with a custom command
[27/168] Generating po/hr/LC_MESSAGES/libpeas-2-hr.mo with a custom command
[28/168] Generating po/he/LC_MESSAGES/libpeas-2-he.mo with a custom command
[29/168] Generating po/hu/LC_MESSAGES/libpeas-2-hu.mo with a custom command
[30/168] Generating po/hi/LC_MESSAGES/libpeas-2-hi.mo with a custom command
[31/168] Generating po/id/LC_MESSAGES/libpeas-2-id.mo with a custom command
[32/168] Generating po/ie/LC_MESSAGES/libpeas-2-ie.mo with a custom command
[33/168] Generating po/is/LC_MESSAGES/libpeas-2-is.mo with a custom command
[34/168] Generating po/it/LC_MESSAGES/libpeas-2-it.mo with a custom command
[35/168] Generating po/ja/LC_MESSAGES/libpeas-2-ja.mo with a custom command
[36/168] Generating po/ka/LC_MESSAGES/libpeas-2-ka.mo with a custom command
[37/168] Generating po/kk/LC_MESSAGES/libpeas-2-kk.mo with a custom command
[38/168] Generating po/kn/LC_MESSAGES/libpeas-2-kn.mo with a custom command
[39/168] Generating po/ko/LC_MESSAGES/libpeas-2-ko.mo with a custom command
[40/168] Generating po/lt/LC_MESSAGES/libpeas-2-lt.mo with a custom command
[41/168] Generating po/lv/LC_MESSAGES/libpeas-2-lv.mo with a custom command
[42/168] Generating po/ml/LC_MESSAGES/libpeas-2-ml.mo with a custom command
[43/168] Generating po/mr/LC_MESSAGES/libpeas-2-mr.mo with a custom command
[44/168] Generating po/ms/LC_MESSAGES/libpeas-2-ms.mo with a custom command
[45/168] Generating po/nb/LC_MESSAGES/libpeas-2-nb.mo with a custom command
[46/168] Generating po/nds/LC_MESSAGES/libpeas-2-nds.mo with a custom command
[47/168] Generating po/ne/LC_MESSAGES/libpeas-2-ne.mo with a custom command
[48/168] Generating po/nl/LC_MESSAGES/libpeas-2-nl.mo with a custom command
[49/168] Generating po/oc/LC_MESSAGES/libpeas-2-oc.mo with a custom command
[50/168] Generating po/or/LC_MESSAGES/libpeas-2-or.mo with a custom command
[51/168] Generating po/pl/LC_MESSAGES/libpeas-2-pl.mo with a custom command
[52/168] Generating po/pa/LC_MESSAGES/libpeas-2-pa.mo with a custom command
[53/168] Generating po/pt/LC_MESSAGES/libpeas-2-pt.mo with a custom command
[54/168] Generating po/pt_BR/LC_MESSAGES/libpeas-2-pt_BR.mo with a custom command
[55/168] Generating po/ro/LC_MESSAGES/libpeas-2-ro.mo with a custom command
[56/168] Generating po/ru/LC_MESSAGES/libpeas-2-ru.mo with a custom command
[57/168] Generating po/sl/LC_MESSAGES/libpeas-2-sl.mo with a custom command
[58/168] Generating po/sk/LC_MESSAGES/libpeas-2-sk.mo with a custom command
[59/168] Generating po/sr/LC_MESSAGES/libpeas-2-sr.mo with a custom command
[60/168] Generating po/sv/LC_MESSAGES/libpeas-2-sv.mo with a custom command
[61/168] Generating po/sr@latin/LC_MESSAGES/libpeas-2-sr@latin.mo with a custom command
[62/168] Generating po/ta/LC_MESSAGES/libpeas-2-ta.mo with a custom command
[63/168] Generating po/te/LC_MESSAGES/libpeas-2-te.mo with a custom command
[64/168] Generating po/tg/LC_MESSAGES/libpeas-2-tg.mo with a custom command
[65/168] Generating po/th/LC_MESSAGES/libpeas-2-th.mo with a custom command
[66/168] Generating po/tr/LC_MESSAGES/libpeas-2-tr.mo with a custom command
[67/168] Generating po/uk/LC_MESSAGES/libpeas-2-uk.mo with a custom command
[68/168] Generating po/ug/LC_MESSAGES/libpeas-2-ug.mo with a custom command
[69/168] Generating po/vi/LC_MESSAGES/libpeas-2-vi.mo with a custom command
[70/168] Generating po/zh_CN/LC_MESSAGES/libpeas-2-zh_CN.mo with a custom command
[71/168] Generating po/zh_HK/LC_MESSAGES/libpeas-2-zh_HK.mo with a custom command
[72/168] Generating po/zh_TW/LC_MESSAGES/libpeas-2-zh_TW.mo with a custom command
[73/168] Generating loaders/lua5.1/resources/peas-lua-resources_h with a custom command
[74/168] Generating loaders/lua5.1/resources/peas-lua-resources_c with a custom command
[75/168] Generating loaders/python/peas-python-resources_h with a custom command
[76/168] Generating loaders/python/peas-python-resources_c with a custom command
[77/168] Generating libpeas/peas-marshal_h with a custom command
INFO: Reading ../libpeas/peas-marshal.list...
[78/168] Generating tests/libpeas/plugins/embedded/embedded-resources_c with a custom command
[79/168] Generating tests/libpeas/plugins/embedded/embedded-resources_h with a custom command
[80/168] Generating tests/libpeas/plugins/extension-c/libextension-c-missing-symbol-data with a custom command
[81/168] Generating tests/libpeas/plugins/libpeas-test-data with a custom command
[82/168] Generating tests/libpeas/plugins/extension-gjs/extension-gjs-data with a custom command
[83/168] Generating tests/libpeas/plugins/extension-c/libextension-c-data with a custom command
[84/168] Generating tests/libpeas/plugins/embedded/embedded-data with a custom command
[85/168] Generating libpeas/peas-marshal_c with a custom command
INFO: Reading ../libpeas/peas-marshal.list...
[86/168] Compiling C object libpeas/libpeas-2.so.0.0.0.p/peas-debug.c.o
[87/168] Compiling C object libpeas/libpeas-2.so.0.0.0.p/peas-dirs.c.o
[88/168] Compiling C object libpeas/libpeas-2.so.0.0.0.p/peas-i18n.c.o
[89/168] Compiling C object libpeas/libpeas-2.so.0.0.0.p/meson-generated_.._peas-marshal.c.o
[90/168] Compiling C object libpeas/libpeas-2.so.0.0.0.p/peas-extension-base.c.o
[91/168] Compiling C object libpeas/libpeas-2.so.0.0.0.p/peas-extension-set.c.o
[92/168] Compiling C object libpeas/libpeas-2.so.0.0.0.p/peas-object-module.c.o
[93/168] Compiling C object libpeas/libpeas-2.so.0.0.0.p/peas-plugin-loader.c.o
[94/168] Compiling C object libpeas/libpeas-2.so.0.0.0.p/peas-plugin-loader-c.c.o
[95/168] Compiling C object libpeas/libpeas-2.so.0.0.0.p/peas-utils.c.o
[96/168] Compiling C object loaders/lua5.1/liblua51loader.so.p/meson-generated_.._resources_peas-lua-resources.c.o
[97/168] Compiling C object libpeas/libpeas-2.so.0.0.0.p/peas-plugin-info.c.o
[98/168] Compiling C object loaders/lua5.1/liblua51loader.so.p/peas-lua-internal.c.o
[99/168] Compiling C object libpeas/libpeas-2.so.0.0.0.p/peas-engine.c.o
[100/168] Compiling C++ object loaders/gjs/libgjsloader.so.p/peas-plugin-loader-gjs.cpp.o
FAILED: loaders/gjs/libgjsloader.so.p/peas-plugin-loader-gjs.cpp.o
g++ -Iloaders/gjs/libgjsloader.so.p -Iloaders/gjs -I../loaders/gjs -I. -I.. -Ilibpeas -I../libpeas -I/nix/store/dcwr090bqdp45z21cdzx6pngacch97mb-glib-2.76.4-dev/include/glib-2.0 -I/nix/store/prf7zgzc9067aiw9qy583pfrrj1s65ah-glib-2.76.4/lib/glib-2.0/include -I/nix/store/dcwr090bqdp45z21cdzx6pngacch97mb-glib-2.76.4-dev/include -I/nix/store/lpnsp6wrjjkhkrh71vihzg44qq5kxx9i-gjs-1.77.1-dev/include/gjs-1.0 -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c++17 -fPIC -pthread -Wno-missing-field-initializers -Wno-unused-parameter -MD -MQ loaders/gjs/libgjsloader.so.p/peas-plugin-loader-gjs.cpp.o -MF loaders/gjs/libgjsloader.so.p/peas-plugin-loader-gjs.cpp.o.d -o loaders/gjs/libgjsloader.so.p/peas-plugin-loader-gjs.cpp.o -c ../loaders/gjs/peas-plugin-loader-gjs.cpp
../loaders/gjs/peas-plugin-loader-gjs.cpp:27:10: fatal error: js/Array.h: No such file or directory
27 | #include <js/Array.h>
| ^~~~~~~~~~~~
compilation terminated.
[101/168] Compiling C object loaders/python/libpythonloader.so.p/meson-generated_.._peas-python-resources.c.o
[102/168] Compiling C object loaders/lua5.1/liblua51loader.so.p/peas-lua-utils.c.o
[103/168] Linking target libpeas/libpeas-2.so.0.0.0
[104/168] Compiling C object loaders/lua5.1/liblua51loader.so.p/peas-plugin-loader-lua.c.o
[105/168] Compiling C object loaders/python/libpythonloader.so.p/peas-plugin-loader-python.c.o
[106/168] Compiling C object tests/testing-util/libtesting-util-2.so.p/testing-util.c.o
[107/168] Compiling C object loaders/python/libpythonloader.so.p/peas-python-internal.c.o
ninja: build stopped: subcommand failed.
error: builder for '/nix/store/9pm5sndrdlc8n4ycdj41p81ck5f6sf2w-libpeas-1.99.0.drv' failed with exit code 1;
I think <js/Array.h>
is provided by mozjs, so looks like this has some direct usage of mozjs, probably this dependency is not declared. After passing -I${spidermonkey_102.dev}/include/mozjs-102
in nix packaging the build succeed.
I took a look at gjs-1.0.pc
and it looks like mozjs-102 is in Requires.private
instead of Requires
, probably this is related.
Thanks!