Merge pull request #237122 from Weathercold/whalebird-5.0.6

whalebird: 4.7.4 -> 5.0.7

authored by

Pol Dellaiera and committed by
GitHub
fa6c140f a6fc12f6

+31 -11
+10
maintainers/maintainer-list.nix
··· 17133 17133 github = "wdavidw"; 17134 17134 githubId = 46896; 17135 17135 }; 17136 + weathercold = { 17137 + name = "Weathercold"; 17138 + email = "weathercold.scr@gmail.com"; 17139 + matrix = "@weathercold:matrix.org"; 17140 + github = "Weathercold"; 17141 + githubId = 49368953; 17142 + keys = [{ 17143 + fingerprint = "D20F C904 A145 8B28 53D8 FBA0 0422 0096 01E4 87FC"; 17144 + }]; 17145 + }; 17136 17146 wegank = { 17137 17147 name = "Weijia Wang"; 17138 17148 email = "contact@weijia.wang";
+20 -10
pkgs/applications/misc/whalebird/default.nix
··· 1 - { lib, stdenv, fetchurl, autoPatchelfHook, makeDesktopItem, copyDesktopItems, makeWrapper, electron 2 - , nodePackages, alsa-lib, gtk3, libdbusmenu, libxshmfence, mesa, nss }: 1 + { lib, stdenv, fetchurl 2 + , autoPatchelfHook, makeDesktopItem, copyDesktopItems, makeWrapper, gnugrep, nodePackages 3 + , electron, python3, alsa-lib, gtk3, libdbusmenu, libxshmfence, mesa, nss 4 + }: 3 5 4 6 stdenv.mkDerivation rec { 5 7 pname = "whalebird"; 6 - version = "4.7.4"; 8 + version = "5.0.7"; 7 9 8 10 src = let 9 - downloads = "https://github.com/h3poteto/whalebird-desktop/releases/download/${version}"; 11 + downloads = "https://github.com/h3poteto/whalebird-desktop/releases/download/v${version}"; 10 12 in 11 13 if stdenv.system == "x86_64-linux" then 12 14 fetchurl { 13 15 url = downloads + "/Whalebird-${version}-linux-x64.tar.bz2"; 14 - sha256 = "sha256-jRtlnKlrh6If9wy3FqVBtctQO3rZJRwceUWAPmieT4A="; 16 + hash = "sha256-eufP038REwF2VwAxxI8R0S3fE8oJ+SX/CES5ozuut2w="; 15 17 } 16 18 else if stdenv.system == "aarch64-linux" then 17 19 fetchurl { 18 20 url = downloads + "/Whalebird-${version}-linux-arm64.tar.bz2"; 19 - sha256 = "sha256-gWCBH2zfhJdJ3XUAxvZ0+gBHye5uYCUgX1BDEoaruxY="; 21 + hash = "sha256-U0xVTUUm6wsRxYc1w4vfNtVE6o8dNzXTSi+IX4mgDEE="; 20 22 } 21 23 else 22 24 throw "Whalebird is not supported for ${stdenv.system}"; ··· 25 27 autoPatchelfHook 26 28 makeWrapper 27 29 copyDesktopItems 30 + gnugrep 28 31 nodePackages.asar 29 32 ]; 30 33 ··· 52 55 runHook preBuild 53 56 54 57 # Necessary steps to find the tray icon 58 + # For aarch64-linux, we need to overwrite this symlink first as it points to 59 + # /usr/bin/python3 60 + if [ "${stdenv.system}" = "aarch64-linux" ] 61 + then ln -sf ${python3}/bin/python3 \ 62 + opt/Whalebird/resources/app.asar.unpacked/node_modules/better-sqlite3/build/node_gyp_bins/python3 63 + fi 55 64 asar extract opt/Whalebird/resources/app.asar "$TMP/work" 56 - substituteInPlace $TMP/work/dist/electron/main.js \ 57 - --replace "qt,\"tray_icon.png\"" "\"$out/opt/Whalebird/resources/build/icons/tray_icon.png\"" 65 + substituteInPlace "$TMP/work/dist/electron/main.js" \ 66 + --replace "$(grep -oE '.{2},"tray_icon.png"' "$TMP/work/dist/electron/main.js")" \ 67 + "\"$out/opt/Whalebird/resources/build/icons/tray_icon.png\"" 58 68 asar pack --unpack='{*.node,*.ftz,rect-overlay}' "$TMP/work" opt/Whalebird/resources/app.asar 59 69 60 70 runHook postBuild ··· 83 93 description = "Electron based Mastodon, Pleroma and Misskey client for Windows, Mac and Linux"; 84 94 homepage = "https://whalebird.social"; 85 95 sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 86 - license = licenses.mit; 87 - maintainers = with maintainers; [ wolfangaukang colinsane ]; 96 + license = licenses.gpl3Only; 97 + maintainers = with maintainers; [ wolfangaukang colinsane weathercold ]; 88 98 platforms = [ "x86_64-linux" "aarch64-linux" ]; 89 99 }; 90 100 }
+1 -1
pkgs/top-level/all-packages.nix
··· 35434 35434 wgnord = callPackage ../applications/networking/wgnord/default.nix { }; 35435 35435 35436 35436 whalebird = callPackage ../applications/misc/whalebird { 35437 - electron = electron_19; 35437 + electron = electron_21; 35438 35438 }; 35439 35439 35440 35440 windowlab = callPackage ../applications/window-managers/windowlab { };