2022-11-21 10:17:50 +00:00
|
|
|
{ appimageTools, lib, fetchurl, makeDesktopItem }:
|
2016-10-03 13:24:35 +00:00
|
|
|
|
2016-10-12 06:54:47 +00:00
|
|
|
let
|
2020-02-21 15:25:21 +00:00
|
|
|
pname = "rambox";
|
2024-10-22 23:55:48 +00:00
|
|
|
version = "2.4.1";
|
2022-11-21 10:17:50 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ramboxapp/download/releases/download/v${version}/Rambox-${version}-linux-x64.AppImage";
|
2024-10-22 23:55:48 +00:00
|
|
|
hash = "sha256-ndFv5rNTWyqrGGC8t1JNR+bQC0Jsit4I9p4ng7h/gcU=";
|
2022-11-21 10:17:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
desktopItem = (makeDesktopItem {
|
|
|
|
desktopName = "Rambox";
|
|
|
|
name = pname;
|
|
|
|
exec = "rambox";
|
|
|
|
icon = pname;
|
|
|
|
categories = [ "Network" ];
|
|
|
|
});
|
|
|
|
|
2024-04-29 07:55:50 +00:00
|
|
|
appimageContents = appimageTools.extract {
|
2022-11-21 10:17:50 +00:00
|
|
|
inherit pname version src;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
|
|
|
inherit pname version src;
|
2021-01-11 14:15:12 +00:00
|
|
|
|
2022-11-21 10:17:50 +00:00
|
|
|
extraInstallCommands = ''
|
|
|
|
mkdir -p $out/share/applications $out/share/icons/hicolor/256x256/apps
|
|
|
|
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
|
|
|
|
'';
|
2017-09-07 18:10:50 +00:00
|
|
|
|
2024-05-01 12:42:20 +00:00
|
|
|
extraPkgs = pkgs: [ pkgs.procps ];
|
2023-10-24 19:28:24 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-11-21 10:17:50 +00:00
|
|
|
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" ];
|
2024-03-14 00:48:23 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2020-01-15 18:16:59 +00:00
|
|
|
};
|
2016-10-03 13:24:35 +00:00
|
|
|
}
|