whalebird: init at 4.4.5 (#142885)

* whalebird: init at 4.4.5

* Update pkgs/applications/misc/whalebird/default.nix

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

authored by

P
Sandro
and committed by
GitHub
6751e742 dd49b2db

+65
+61
pkgs/applications/misc/whalebird/default.nix
···
··· 1 + { lib, stdenv, fetchurl, dpkg, autoPatchelfHook, makeWrapper, electron 2 + , nodePackages, alsa-lib, gtk3, libxshmfence, mesa, nss }: 3 + 4 + stdenv.mkDerivation rec { 5 + pname = "whalebird"; 6 + version = "4.4.5"; 7 + 8 + src = fetchurl { 9 + url = "https://github.com/h3poteto/whalebird-desktop/releases/download/${version}/Whalebird-${version}-linux-x64.deb"; 10 + sha256 = "sha256-CIlj9Sc/hj2UMgQzfHA3iQYO6EPqcndqkNUCBecHq+E="; 11 + }; 12 + 13 + nativeBuildInputs = [ 14 + dpkg 15 + autoPatchelfHook 16 + makeWrapper 17 + nodePackages.asar 18 + ]; 19 + 20 + buildInputs = [ alsa-lib gtk3 libxshmfence mesa nss ]; 21 + 22 + dontConfigure = true; 23 + 24 + unpackPhase = '' 25 + dpkg-deb -x ${src} ./ 26 + ''; 27 + 28 + buildPhase = '' 29 + runHook preBuild 30 + 31 + # Necessary steps to find the tray icon 32 + asar extract opt/Whalebird/resources/app.asar "$TMP/work" 33 + substituteInPlace $TMP/work/dist/electron/main.js \ 34 + --replace "Mo,\"tray_icon.png\"" "\"$out/opt/Whalebird/resources/build/icons/tray_icon.png\"" 35 + asar pack --unpack='{*.node,*.ftz,rect-overlay}' "$TMP/work" opt/Whalebird/resources/app.asar 36 + 37 + runHook postBuild 38 + ''; 39 + 40 + installPhase = '' 41 + runHook preInstall 42 + 43 + mkdir $out 44 + mv usr/share opt $out 45 + 46 + substituteInPlace $out/share/applications/whalebird.desktop \ 47 + --replace '/opt/Whalebird' $out/bin 48 + makeWrapper ${electron}/bin/electron $out/bin/whalebird \ 49 + --add-flags $out/opt/Whalebird/resources/app.asar 50 + 51 + runHook postInstall 52 + ''; 53 + 54 + meta = with lib; { 55 + description = "Electron based Mastodon, Pleroma and Misskey client for Windows, Mac and Linux"; 56 + homepage = "https://whalebird.social"; 57 + license = licenses.mit; 58 + maintainers = with maintainers; [ wolfangaukang ]; 59 + platforms = [ "x86_64-linux" ]; 60 + }; 61 + }
+4
pkgs/top-level/all-packages.nix
··· 28838 28839 weston = callPackage ../applications/window-managers/weston { pipewire = pipewire_0_2; }; 28840 28841 wio = callPackage ../applications/window-managers/wio { }; 28842 28843 whitebox-tools = callPackage ../applications/gis/whitebox-tools {
··· 28838 28839 weston = callPackage ../applications/window-managers/weston { pipewire = pipewire_0_2; }; 28840 28841 + whalebird = callPackage ../applications/misc/whalebird { 28842 + electron = electron_12; 28843 + }; 28844 + 28845 wio = callPackage ../applications/window-managers/wio { }; 28846 28847 whitebox-tools = callPackage ../applications/gis/whitebox-tools {