From 9f9c4784b6a2bc45a0691baae701a9dcf30dfbbb Mon Sep 17 00:00:00 2001 From: Andrew Haynes Date: Thu, 26 Mar 2026 11:29:45 -0400 Subject: [PATCH] ? --- flake.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index cbeb0e4..d51b55e 100644 --- a/flake.nix +++ b/flake.nix @@ -24,8 +24,16 @@ # the library actually gets installed to the nix store output installPhase = '' mkdir -p $out/lib $out/include - cp libPROCESSOR.dylib $out/lib/ 2>/dev/null || cp libPROCESSOR.a $out/lib/ - cp *.h $out/include/ + + # Copy the library (looks like your build made a static lib 'libPROCESSOR.a') + cp libPROCESSOR.a $out/lib/ + + # Copy headers safely. + # If your headers are in a subfolder, change './*.h' to './src/*.h' etc. + # The '|| true' ensures the build doesn't crash if no headers are found. + cp *.h $out/include/ || cp src/*.h $out/include/ || true + + echo "✅ Installed libPROCESSOR.a and headers to $out" ''; };