positron-bin: 2026.01.0-147 -> 2026.02.0-139 (#489757)

This commit is contained in:
Justin Bedő
2026-02-25 22:25:41 +00:00
committed by GitHub
2 changed files with 9 additions and 9 deletions
+7 -7
View File
@@ -25,7 +25,7 @@
}:
let
pname = "positron-bin";
version = "2026.01.0-147";
version = "2026.02.1-5";
in
stdenv.mkDerivation {
inherit version pname;
@@ -33,18 +33,18 @@ stdenv.mkDerivation {
src =
if stdenv.hostPlatform.isDarwin then
fetchurl {
url = "https://cdn.posit.co/positron/releases/mac/universal/Positron-${version}-universal.dmg";
hash = "sha256-/SBJWQLOq4nEHd0HvwII9HuaSDenkcxGmIqDqTJsfug=";
url = "https://cdn.posit.co/positron/releases/mac/arm64/Positron-${version}-arm64.dmg";
hash = "sha256-wQ/ctA9q8i5hyi86VKF8cC/mDHVU1DRt1vnFBKdAAJI=";
}
else if stdenv.hostPlatform.system == "aarch64-linux" then
fetchurl {
url = "https://cdn.posit.co/positron/releases/deb/arm64/Positron-${version}-arm64.deb";
hash = "sha256-u8JrIlSUIynZlZ0o+Z8wWltIDz8/vq0CynPiLSZ6M14=";
hash = "sha256-AW4jueFtdvrmIAm+d5/qjyViaSpue51dbyU4NYs3vaE=";
}
else
fetchurl {
url = "https://cdn.posit.co/positron/releases/deb/x86_64/Positron-${version}-x64.deb";
hash = "sha256-eJJ+qcfj2yDKG2uItdtgoT5+VaeXc2/yfKP5TeSuk70=";
hash = "sha256-aTVzJCsMARXciasGv7l/syFb3V81Ii6gVl6sBrEPFzM=";
};
buildInputs = [
@@ -145,7 +145,7 @@ stdenv.mkDerivation {
platforms = [
"x86_64-linux"
"aarch64-linux"
]
++ lib.platforms.darwin;
"aarch64-darwin"
];
};
}
+2 -2
View File
@@ -18,11 +18,11 @@ fi
# Update Darwin hash.
current_hash=$(nix store prefetch-file --json --hash-type sha256 \
"https://cdn.posit.co/positron/releases/mac/universal/Positron-${current_version}-universal.dmg" \
"https://cdn.posit.co/positron/releases/mac/arm64/Positron-${current_version}-arm64.dmg" \
| jq -r .hash)
new_hash=$(nix store prefetch-file --json --hash-type sha256 \
"https://cdn.posit.co/positron/releases/mac/universal/Positron-${new_version}-universal.dmg" \
"https://cdn.posit.co/positron/releases/mac/arm64/Positron-${new_version}-arm64.dmg" \
| jq -r .hash)
sed -i "s|$current_hash|$new_hash|g" $positron_nix