positron-bin: disable automatic updates

This commit is contained in:
Bruno Rodrigues
2025-03-11 22:34:00 +01:00
parent 98495214f9
commit d7e5704dee
+5 -2
View File
@@ -85,7 +85,8 @@ stdenv.mkDerivation {
# Positron will use the system version of BLAS if we don't provide the nix version.
wrapProgram "$out/Applications/Positron.app/Contents/Resources/app/bin/code" \
--prefix DYLD_INSERT_LIBRARIES : "${lib.makeLibraryPath [ blas ]}/libblas.dylib"
--prefix DYLD_INSERT_LIBRARIES : "${lib.makeLibraryPath [ blas ]}/libblas.dylib" \
--add-flags "--disable-updates"
ln -s "$out/Applications/Positron.app/Contents/Resources/app/bin/code" "$out/bin/positron"
runHook postInstall
@@ -112,7 +113,9 @@ stdenv.mkDerivation {
# Fix libGL.so not found errors.
wrapProgram "$out/share/positron/positron" \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libglvnd ]}"
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libglvnd ]}" \
--add-flags "--disable-updates"
mkdir -p "$out/bin"
ln -s "$out/share/positron/positron" "$out/bin/positron"