positron-bin: 2024.11.0-116 -> 2025.02.0-171

This commit is contained in:
Bruno Rodrigues
2025-02-15 21:10:43 +01:00
parent 2ea58359e0
commit 9fbfaf5a1c
+8 -6
View File
@@ -3,6 +3,7 @@
_7zz,
alsa-lib,
systemd,
wrapGAppsHook4,
autoPatchelfHook,
blas,
dpkg,
@@ -21,7 +22,7 @@
}:
let
pname = "positron-bin";
version = "2024.11.0-116";
version = "2025.02.0-171";
in
stdenv.mkDerivation {
inherit version pname;
@@ -30,12 +31,12 @@ stdenv.mkDerivation {
if stdenv.hostPlatform.isDarwin then
fetchurl {
url = "https://github.com/posit-dev/positron/releases/download/${version}/Positron-${version}.dmg";
hash = "sha256-5Ym42InDgFLGdZk0LYV1H0eC5WzmsYToG1KLdiGgTto=";
hash = "sha256-b5o1+UXt5JAuHkm1K1jrMLV+7PHfKJTOff4aTk8xm2I=";
}
else
fetchurl {
url = "https://github.com/posit-dev/positron/releases/download/${version}/Positron-${version}.deb";
hash = "sha256-pE25XVYFW8WwyQ7zmox2mmXy6ZCSaXk2gSnPimg7xtU=";
url = "https://github.com/posit-dev/positron/releases/download/${version}/Positron-${version}-x64.deb";
hash = "sha256-TjQc/Y4Sa2MlLslbygYVFbIk3raArMvYstSiSEYzfo0=";
};
buildInputs =
@@ -64,6 +65,7 @@ stdenv.mkDerivation {
lib.optionals stdenv.hostPlatform.isLinux [
autoPatchelfHook
dpkg
wrapGAppsHook4
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
_7zz
@@ -99,8 +101,8 @@ stdenv.mkDerivation {
install -m 444 -D usr/share/applications/positron.desktop "$out/share/applications/positron.desktop"
substituteInPlace "$out/share/applications/positron.desktop" \
--replace-fail \
"Icon=com.visualstudio.code.oss" \
"Icon=$out/share/pixmaps/com.visualstudio.code.oss.png" \
"Icon=co.posit.positron" \
"Icon=$out/share/pixmaps/co.posit.positron.png" \
--replace-fail \
"Exec=/usr/share/positron/positron %F" \
"Exec=$out/share/positron/.positron-wrapped %F" \