nixpkgs/pkgs/applications/networking/instant-messengers/rambox/default.nix
2023-05-01 02:24:09 +00:00

42 lines
1.3 KiB
Nix

{ appimageTools, lib, fetchurl, makeDesktopItem }:
let
pname = "rambox";
version = "2.1.3";
src = fetchurl {
url = "https://github.com/ramboxapp/download/releases/download/v${version}/Rambox-${version}-linux-x64.AppImage";
sha256 = "sha256-wvjCr1U+/1/GtebMNWJjizzegqZ+wWXUrmOshYtMq6o=";
};
desktopItem = (makeDesktopItem {
desktopName = "Rambox";
name = pname;
exec = "rambox";
icon = pname;
categories = [ "Network" ];
});
appimageContents = appimageTools.extractType2 {
inherit pname version src;
};
in
appimageTools.wrapType2 {
inherit pname version src;
extraInstallCommands = ''
mkdir -p $out/share/applications $out/share/icons/hicolor/256x256/apps
ln -sf rambox-${version} $out/bin/${pname}
install -Dm644 ${appimageContents}/usr/share/icons/hicolor/256x256/apps/rambox*.png $out/share/icons/hicolor/256x256/apps/${pname}.png
install -Dm644 ${desktopItem}/share/applications/* $out/share/applications
'';
meta = with lib; {
description = "Workspace Simplifier - a cross-platform application organizing web services into Workspaces similar to browser profiles";
homepage = "https://rambox.app";
license = licenses.unfree;
maintainers = with maintainers; [ nazarewk ];
platforms = [ "x86_64-linux" ];
};
}