balatro: fix '$src/[Aa]ssets' un-nestling
Looks like this block was dropped while I was rebasing changes on the PR.
This commit is contained in:
@@ -100,6 +100,14 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
tmpdir=$(mktemp -d)
|
||||
7z x ${finalAttrs.src} -o$tmpdir -y
|
||||
|
||||
if [ -d "$tmpdir/assets" ]; then
|
||||
mv "$tmpdir/assets/"* "$tmpdir/"
|
||||
rmdir "$tmpdir/assets"
|
||||
elif [ -d "$tmpdir/Assets" ]; then
|
||||
mv "$tmpdir/Assets/"* "$tmpdir/"
|
||||
rmdir "$tmpdir/Assets"
|
||||
fi
|
||||
|
||||
${lib.optionalString withBridgePatch ''
|
||||
cp ${./bridge_detour.lua} $tmpdir/bridge_detour.lua
|
||||
|
||||
|
||||
Reference in New Issue
Block a user