positron-bin: 2025.07.0-112 -> 2025.07.0-204 (#421845)

This commit is contained in:
Justin Bedő
2025-07-04 16:39:27 +10:00
committed by GitHub
2 changed files with 13 additions and 13 deletions
+7 -7
View File
@@ -22,7 +22,7 @@
}:
let
pname = "positron-bin";
version = "2025.07.0-112";
version = "2025.07.0-204";
in
stdenv.mkDerivation {
inherit version pname;
@@ -30,18 +30,18 @@ stdenv.mkDerivation {
src =
if stdenv.hostPlatform.isDarwin then
fetchurl {
url = "https://cdn.posit.co/positron/dailies/mac/universal/Positron-${version}.dmg";
hash = "sha256-vprBr+0XBndCiFTauiOa3gjOlxj/w2ZhQlXNJdly7oU=";
url = "https://cdn.posit.co/positron/releases/mac/universal/Positron-${version}-universal.dmg";
hash = "sha256-f1EQw6fKH4pgVG7+YcLPv6FawJ2TN507hYLD0pn+PlM=";
}
else if stdenv.hostPlatform.system == "aarch64-linux" then
fetchurl {
url = "https://cdn.posit.co/positron/dailies/deb/arm64/Positron-${version}-arm64.deb";
hash = "sha256-TYFBW3sRpgsdVC66WB9SYNsmAxGCq/3gQSexOVtvGZs=";
url = "https://cdn.posit.co/positron/releases/deb/arm64/Positron-${version}-arm64.deb";
hash = "sha256-SxjQPZ2wUmSIYOxBB6AS6Ue7ajXzMkY32nHdkZkNhBA=";
}
else
fetchurl {
url = "https://cdn.posit.co/positron/dailies/deb/x86_64/Positron-${version}-x64.deb";
hash = "sha256-yueD2PEBXiG8FPghRWvBS6TPtyZ1Q8utKOS8QDMNlk8=";
url = "https://cdn.posit.co/positron/releases/deb/x86_64/Positron-${version}-x64.deb";
hash = "sha256-f27LC4+SXnkyePw/fw8r9JYsOQKVoIiFkAet/QtwbNg=";
};
buildInputs =
+6 -6
View File
@@ -18,33 +18,33 @@ fi
# Update Darwin hash.
current_hash=$(nix store prefetch-file --json --hash-type sha256 \
"https://cdn.posit.co/positron/dailies/mac/universal/Positron-${current_version}.dmg" \
"https://cdn.posit.co/positron/releases/mac/universal/Positron-${current_version}-universal.dmg" \
| jq -r .hash)
new_hash=$(nix store prefetch-file --json --hash-type sha256 \
"https://cdn.posit.co/positron/dailies/mac/universal/Positron-${new_version}.dmg" \
"https://cdn.posit.co/positron/releases/mac/universal/Positron-${new_version}-universal.dmg" \
| jq -r .hash)
sed -i "s|$current_hash|$new_hash|g" $positron_nix
# Update Linux x86_64 hash.
current_hash=$(nix store prefetch-file --json --hash-type sha256 \
"https://cdn.posit.co/positron/dailies/deb/x86_64/Positron-${current_version}-x64.deb" \
"https://cdn.posit.co/positron/releases/deb/x86_64/Positron-${current_version}-x64.deb" \
| jq -r .hash)
new_hash=$(nix store prefetch-file --json --hash-type sha256 \
"https://cdn.posit.co/positron/dailies/deb/x86_64/Positron-${new_version}-x64.deb" \
"https://cdn.posit.co/positron/releases/deb/x86_64/Positron-${new_version}-x64.deb" \
| jq -r .hash)
sed -i "s|$current_hash|$new_hash|g" $positron_nix
# Update Linux aarch64 hash.
current_hash=$(nix store prefetch-file --json --hash-type sha256 \
"https://cdn.posit.co/positron/dailies/deb/arm64/Positron-${current_version}-arm64.deb" \
"https://cdn.posit.co/positron/releases/deb/arm64/Positron-${current_version}-arm64.deb" \
| jq -r .hash)
new_hash=$(nix store prefetch-file --json --hash-type sha256 \
"https://cdn.posit.co/positron/dailies/deb/arm64/Positron-${new_version}-arm64.deb" \
"https://cdn.posit.co/positron/releases/deb/arm64/Positron-${new_version}-arm64.deb" \
| jq -r .hash)
sed -i "s|$current_hash|$new_hash|g" $positron_nix