2019-05-01 19:08:32 +01:00
|
|
|
{ autoPatchelfHook, electron, fetchurl, makeDesktopItem, makeWrapper, nodePackages, nss, stdenv, xdg_utils, xorg }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rambox-pro";
|
2019-08-20 22:55:29 +01:00
|
|
|
version = "1.1.6";
|
2019-05-01 19:08:32 +01:00
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
dontStrip = true;
|
|
|
|
|
2019-06-22 21:15:17 +01:00
|
|
|
buildInputs = [ nss xorg.libXext xorg.libxkbfile xorg.libXScrnSaver ];
|
2019-05-01 19:08:32 +01:00
|
|
|
nativeBuildInputs = [ autoPatchelfHook makeWrapper nodePackages.asar ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ramboxapp/download/releases/download/v${version}/RamboxPro-${version}-linux-x64.tar.gz";
|
2019-08-20 22:55:29 +01:00
|
|
|
sha256 = "1jdamjdl649315ms5g1c7m7gpy04rv7xpy6bsvink242adaq2pjz";
|
2019-05-01 19:08:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/opt/RamboxPro $out/share/applications
|
|
|
|
asar e resources/app.asar $out/opt/RamboxPro/resources/app.asar.unpacked
|
|
|
|
ln -s ${desktopItem}/share/applications/* $out/share/applications
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
2019-05-05 06:29:51 +01:00
|
|
|
makeWrapper ${electron}/bin/electron $out/bin/ramboxpro \
|
2019-05-01 19:08:32 +01:00
|
|
|
--add-flags "$out/opt/RamboxPro/resources/app.asar.unpacked --without-update" \
|
|
|
|
--prefix PATH : ${xdg_utils}/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "rambox-pro";
|
|
|
|
exec = "ramboxpro";
|
|
|
|
type = "Application";
|
|
|
|
desktopName = "Rambox Pro";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Messaging and emailing app that combines common web applications into one";
|
|
|
|
homepage = https://rambox.pro;
|
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ chrisaw ];
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|