Merge pull request #256615 from yuuyins/simplex-chat

simplex-chat-desktop: init at 5.3.1

authored by Emily and committed by GitHub 9e089e29 092460f3

+46
+46
pkgs/by-name/si/simplex-chat-desktop/package.nix
··· 1 + { lib 2 + , appimageTools 3 + , fetchurl 4 + }: 5 + 6 + let 7 + pname = "simplex-chat-desktop"; 8 + version = "5.3.1"; 9 + 10 + src = fetchurl { 11 + url = "https://github.com/simplex-chat/simplex-chat/releases/download/v${version}/simplex-desktop-x86_64.AppImage"; 12 + hash = "sha256-vykdi7SXKKsjYE/yixGrKQoWuUIOAjofLUn/fsdmLMc="; 13 + }; 14 + 15 + appimageContents = appimageTools.extract { 16 + inherit pname version src; 17 + }; 18 + in appimageTools.wrapType2 { 19 + inherit pname version src; 20 + 21 + extraPkgs = pkgs: with pkgs; [ 22 + makeWrapper 23 + ]; 24 + 25 + extraBwrapArgs = [ 26 + "--setenv _JAVA_AWT_WM_NONREPARENTING 1" 27 + ]; 28 + 29 + extraInstallCommands = '' 30 + mv $out/bin/${pname}-${version} $out/bin/${pname} 31 + 32 + install --mode=444 -D ${appimageContents}/chat.simplex.app.desktop --target-directory=$out/share/applications 33 + substituteInPlace $out/share/applications/chat.simplex.app.desktop \ 34 + --replace 'Exec=simplex' 'Exec=${pname}' 35 + cp -r ${appimageContents}/usr/share/icons $out/share 36 + ''; 37 + 38 + meta = with lib; { 39 + description = "Desktop application for SimpleX Chat"; 40 + homepage = "https://simplex.chat"; 41 + changelog = "https://github.com/simplex-chat/simplex-chat/releases/tag/v${version}"; 42 + license = licenses.agpl3Only; 43 + maintainers = with maintainers; [ yuu ]; 44 + platforms = [ "x86_64-linux" ]; 45 + }; 46 + }