jetbrains.rust-rover: fix darwin install (#258814)

* jetbrains.rust-rover: fix darwin install

JetBrains doesn't guarantee that the macOS app will be called
`${product}.app` so I modified the installPhase to copy *.app instead
of ${product}.app, which fails on file does not exist for Rust Rover,
which is `RustRover 2023.2 EAP.app`

I've tested with some other JetBrains apps on darwin aarch64 and they
continue to build as expected.
This commit is contained in:
Joe DeVivo 2023-10-04 09:49:31 -07:00 committed by GitHub
parent f894042da5
commit 3fda5be53f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ stdenvNoCC.mkDerivation {
runHook preInstall
APP_DIR="$out/Applications/${product}.app"
mkdir -p "$APP_DIR"
cp -Tr "${product}.app" "$APP_DIR"
cp -Tr *.app "$APP_DIR"
mkdir -p "$out/bin"
cat << EOF > "$out/bin/${loname}"
open -na '$APP_DIR' --args "\$@"