Fix installPase to be more precise

This commit is contained in:
NagyZoltanPeter 2026-02-09 02:36:00 +01:00
parent 5918a294a3
commit ec77e5dd3a
No known key found for this signature in database
GPG Key ID: 3E1F97CF4A7B6F42

View File

@ -91,8 +91,11 @@ in stdenv.mkDerivation {
'' else ''
mkdir -p $out/bin $out/include
# Copy library files
cp build/* $out/bin/ 2>/dev/null || true
# Copy library files from build directory (created by Make during buildPhase)
# Note: build/ is in the source tree, not result/ (which is a post-build symlink)
if [ -d build ]; then
cp build/lib*.{so,dylib,dll,a} $out/bin/ 2>/dev/null || true
fi
# Copy header files
cp library/libwaku.h $out/include/ 2>/dev/null || true