whalebird: 4.6.5 -> 4.7.4

changelog: <https://github.com/h3poteto/whalebird-desktop/releases>

notable changes:
- close image preview when user clicks outside the image (3733)
- Fix search accounts (3742)
- Fix to set poll expire (3739, 3730)
- update domainFormat validation to accept single character domains like c.im (3775)
- Fix account id when move settings from profile (3805, 3772)
- Fix showReblogs/showReplies form value (3834, 3774)
- new translations: Basque, Hungarian, Persian Icelandic
This commit is contained in:
colin 2023-01-13 06:39:29 +00:00
parent b111b33889
commit f5c7c70dde

View File

@ -3,7 +3,7 @@
stdenv.mkDerivation rec {
pname = "whalebird";
version = "4.6.5";
version = "4.7.4";
src = let
downloads = "https://github.com/h3poteto/whalebird-desktop/releases/download/${version}";
@ -11,12 +11,12 @@ stdenv.mkDerivation rec {
if stdenv.system == "x86_64-linux" then
fetchurl {
url = downloads + "/Whalebird-${version}-linux-x64.tar.bz2";
sha256 = "sha256-WeZnWEwRbZEnYkLwWf6EC3ZbwI+Cr59czdKxxG/Lhn0=";
sha256 = "sha256-jRtlnKlrh6If9wy3FqVBtctQO3rZJRwceUWAPmieT4A=";
}
else if stdenv.system == "aarch64-linux" then
fetchurl {
url = downloads + "/Whalebird-${version}-linux-arm64.tar.bz2";
sha256 = "sha256-5iKVP7zOci5X+EhnfJx5cZ5RiqZKz1pFLDUwZncynUc=";
sha256 = "sha256-gWCBH2zfhJdJ3XUAxvZ0+gBHye5uYCUgX1BDEoaruxY=";
}
else
throw "Whalebird is not supported for ${stdenv.system}";
@ -54,7 +54,7 @@ stdenv.mkDerivation rec {
# Necessary steps to find the tray icon
asar extract opt/Whalebird/resources/app.asar "$TMP/work"
substituteInPlace $TMP/work/dist/electron/main.js \
--replace "Ao,\"tray_icon.png\"" "\"$out/opt/Whalebird/resources/build/icons/tray_icon.png\""
--replace "qt,\"tray_icon.png\"" "\"$out/opt/Whalebird/resources/build/icons/tray_icon.png\""
asar pack --unpack='{*.node,*.ftz,rect-overlay}' "$TMP/work" opt/Whalebird/resources/app.asar
runHook postBuild