fix nix package install phase for gsf binaries
Tests / test_core_function (push) Failing after 11s

This commit is contained in:
2026-03-25 14:09:15 +00:00
parent af9f3e3567
commit 3e8d068494
+13 -2
View File
@@ -20,8 +20,19 @@ pkgs.rustPlatform.buildRustPackage rec {
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
mkdir -p $out/bin mkdir -p $out/bin
cp target/release/gsf $out/bin/
cp target/release/gsfd $out/bin/ gsf_bin="$(find target -type f -path '*/release/gsf' | head -n1)"
gsfd_bin="$(find target -type f -path '*/release/gsfd' | head -n1)"
if [ -z "$gsf_bin" ] || [ -z "$gsfd_bin" ]; then
echo "failed to locate built binaries under target/*/release" >&2
find target -maxdepth 4 -type f | sed -n '1,200p' >&2
exit 1
fi
install -m755 "$gsf_bin" $out/bin/gsf
install -m755 "$gsfd_bin" $out/bin/gsfd
runHook postInstall runHook postInstall
''; '';