compat: mingw: fix dependency patch path

This commit is contained in:
~locpyl-tidnyd 2021-06-16 10:58:08 +00:00
parent c6121f3c01
commit e7ac8c0c2a

View File

@ -79,16 +79,16 @@ buildnixdep () {
fi
# patch and build the dependency if necessary
pushd $dir
if [ ! -e .mingw~ ]
if [ ! -e $dir/.mingw~ ]
then
local patch=../urbit/compat/mingw/$key.patch
[ -e $patch ] && patch -p 1 <$patch
local patch=compat/mingw/$key.patch
[ -e $patch ] && patch -d $dir -p 1 <$patch
pushd $dir
eval "$cmdprep"
eval make "$cmdmake"
touch .mingw~
popd
fi
popd
# if configured, upload freshly built dependency to binary cache
if [ -n "$hash" -a -n "${CACHIX_AUTH_TOKEN-}" ]