You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pro.nix 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. { autoPatchelfHook, electron, fetchurl, makeDesktopItem, makeWrapper, nodePackages, nss, stdenv, xdg_utils, xorg }:
  2. stdenv.mkDerivation rec {
  3. pname = "rambox-pro";
  4. version = "1.1.7";
  5. dontBuild = true;
  6. dontStrip = true;
  7. buildInputs = [ nss xorg.libXext xorg.libxkbfile xorg.libXScrnSaver ];
  8. nativeBuildInputs = [ autoPatchelfHook makeWrapper nodePackages.asar ];
  9. src = fetchurl {
  10. url = "https://github.com/ramboxapp/download/releases/download/v${version}/RamboxPro-${version}-linux-x64.tar.gz";
  11. sha256 = "1d84hlac3qwrbi8khp6r3bm5y25zcz52l6z54k7jmyplay46r5as";
  12. };
  13. installPhase = ''
  14. mkdir -p $out/bin $out/opt/RamboxPro $out/share/applications
  15. asar e resources/app.asar $out/opt/RamboxPro/resources/app.asar.unpacked
  16. ln -s ${desktopItem}/share/applications/* $out/share/applications
  17. '';
  18. postFixup = ''
  19. makeWrapper ${electron}/bin/electron $out/bin/ramboxpro \
  20. --add-flags "$out/opt/RamboxPro/resources/app.asar.unpacked --without-update" \
  21. --prefix PATH : ${xdg_utils}/bin
  22. '';
  23. desktopItem = makeDesktopItem {
  24. name = "rambox-pro";
  25. exec = "ramboxpro";
  26. type = "Application";
  27. desktopName = "Rambox Pro";
  28. };
  29. meta = with stdenv.lib; {
  30. description = "Messaging and emailing app that combines common web applications into one";
  31. homepage = https://rambox.pro;
  32. license = licenses.unfree;
  33. maintainers = with maintainers; [ chrisaw ];
  34. platforms = [ "i686-linux" "x86_64-linux" ];
  35. };
  36. }