rstudio: fix .desktop file by properly escaping use of cmake variable (#410461)

This commit is contained in:
Toma 2025-05-24 12:25:49 +02:00 committed by GitHub
commit 202e215081
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -163,7 +163,7 @@ stdenv.mkDerivation rec {
postPatch = ''
# fix .desktop Exec field
substituteInPlace src/node/desktop/resources/freedesktop/rstudio.desktop.in \
--replace-fail "''${CMAKE_INSTALL_PREFIX}/rstudio" "rstudio"
--replace-fail "\''${CMAKE_INSTALL_PREFIX}/rstudio" "rstudio"
# set install path of freedesktop files
substituteInPlace src/node/desktop/CMakeLists.txt \