gitaly: Embed git binaries

gitaly now embeds git binaries in itself during the build

10fd91391a/packed_binaries.go (L22)

These are meant to be built by the `Makefile` target
`install-bundled-git` but this produces binaries with different names,
and we're also referring to this version of git throughout the NixOS
module, so we hack this by copying over the binaries from the deprecated
`git` target with which we're building gitaly-git.
This commit is contained in:
Sarah Brofeldt 2024-10-24 11:05:49 +02:00 committed by Yaya
parent 77804e950a
commit b5315bf732

View File

@ -46,6 +46,9 @@ buildGoModule ({
preConfigure = ''
mkdir -p _build/bin
cp -r ${auxBins}/bin/* _build/bin
for f in ${git}/bin/git-*; do
cp "$f" "_build/bin/gitaly-$(basename $f)";
done
'';
outputs = [ "out" ];