positron-bin: 2025.02.0-171 -> 2025.04.0-64 (#385217)

This commit is contained in:
Peder Bergebakken Sundt
2025-04-19 03:15:14 +02:00
committed by GitHub
2 changed files with 14 additions and 11 deletions
+10 -7
View File
@@ -22,7 +22,7 @@
}:
let
pname = "positron-bin";
version = "2025.02.0-171";
version = "2025.04.0-64";
in
stdenv.mkDerivation {
inherit version pname;
@@ -30,13 +30,13 @@ stdenv.mkDerivation {
src =
if stdenv.hostPlatform.isDarwin then
fetchurl {
url = "https://github.com/posit-dev/positron/releases/download/${version}/Positron-${version}.dmg";
hash = "sha256-b5o1+UXt5JAuHkm1K1jrMLV+7PHfKJTOff4aTk8xm2I=";
url = "https://cdn.posit.co/positron/dailies/mac/universal/Positron-${version}.dmg";
hash = "sha256-MmLc2YFmWIcmsRp4swKYJdQHAWfSIsW23D5ZLfyb4b4=";
}
else
fetchurl {
url = "https://github.com/posit-dev/positron/releases/download/${version}/Positron-${version}-x64.deb";
hash = "sha256-TjQc/Y4Sa2MlLslbygYVFbIk3raArMvYstSiSEYzfo0=";
url = "https://cdn.posit.co/positron/dailies/deb/x86_64/Positron-${version}-x64.deb";
hash = "sha256-d1HjnMGpKg68EW0wXWvgXL0VEepn1vFJWuAN0HD2IPs=";
};
buildInputs =
@@ -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"
+4 -4
View File
@@ -18,22 +18,22 @@ fi
# Update Darwin hash.
current_hash=$(nix store prefetch-file --json --hash-type sha256 \
"https://github.com/posit-dev/positron/releases/download/${current_version}/Positron-${current_version}.dmg" \
"https://cdn.posit.co/positron/dailies/mac/universal/Positron-${current_version}.dmg" \
| jq -r .hash)
new_hash=$(nix store prefetch-file --json --hash-type sha256 \
"https://github.com/posit-dev/positron/releases/download/${new_version}/Positron-${new_version}.dmg" \
"https://cdn.posit.co/positron/dailies/mac/universal/Positron-${new_version}.dmg" \
| jq -r .hash)
sed -i "s|$current_hash|$new_hash|g" $positron_nix
# Update Linux hash.
current_hash=$(nix store prefetch-file --json --hash-type sha256 \
"https://github.com/posit-dev/positron/releases/download/${current_version}/Positron-${current_version}-x64.deb" \
"https://cdn.posit.co/positron/dailies/deb/x86_64/Positron-${current_version}-x64.deb" \
| jq -r .hash)
new_hash=$(nix store prefetch-file --json --hash-type sha256 \
"https://github.com/posit-dev/positron/releases/download/${new_version}/Positron-${new_version}-x64.deb" \
"https://cdn.posit.co/positron/dailies/deb/x86_64/Positron-${new_version}-x64.deb" \
| jq -r .hash)
sed -i "s|$current_hash|$new_hash|g" $positron_nix