git.iko.soy/typeable/nixpkgs
on master help sign in
rambox-pro: init at 1.1.2 (#60380)

* Added myself to maintainer list * Add package file for rambox-pro * Add patch to fix rambox-pro build * Removed child module refs from package * Added various fixes for new rambox-pro pkg * Change name -> pname to address feedback * Update pkgs/applications/networking/instant-messengers/rambox-pro/default.nix Co-Authored-By: cawilliamson <home@chrisaw.com> * Moved rambox-pro to rambox pkg * Fixed package name - no idea what I was thinking here! * Replace patch with postPatch script Co-Authored-By: cawilliamson <home@chrisaw.com> * Removed patch file

commita63be6cdd75a82a32a972ca8ac57270a4c79e54a authorChristopher A. Williamson <home@chrisaw.com> dateWed 1 May 2019, 19:08 (8 years ago) parent175f25d
3 files changed+58
maintainers/maintainer-list.nix+5 pkgs/applications/networking/instant-messengers/rambox/pro.nix+51 pkgs/top-level/all-packages.nix+2
maintainers/maintainer-list.nix+5
@@ -930,6 +930,11 @@
930930 github = "chris-martin";
931931 name = "Chris Martin";
932932 };
933+ chrisaw = {
934+ email = "home@chrisaw.com";
935+ github = "cawilliamson";
936+ name = "Christopher A. Williamson";
937+ };
933938 chrisjefferson = {
934939 email = "chris@bubblescope.net";
935940 github = "chrisjefferson";
pkgs/applications/networking/instant-messengers/rambox/pro.nixnew file+51
@@ -0,0 +1,51 @@
1+{ autoPatchelfHook, electron, fetchurl, makeDesktopItem, makeWrapper, nodePackages, nss, stdenv, xdg_utils, xorg }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "rambox-pro";
5+ version = "1.1.2";
6+
7+ dontBuild = true;
8+ dontStrip = true;
9+
10+ buildInputs = [ nss xorg.libxkbfile ];
11+ nativeBuildInputs = [ autoPatchelfHook makeWrapper nodePackages.asar ];
12+
13+ src = fetchurl {
14+ url = "https://github.com/ramboxapp/download/releases/download/v${version}/RamboxPro-${version}-linux-x64.tar.gz";
15+ sha256 = "0rrfpl371hp278b02b9b6745ax29yrdfmxrmkxv6d158jzlv0dlr";
16+ };
17+
18+ postPatch = ''
19+ substituteInPlace resources/app.asar.unpacked/node_modules/ad-block/vendor/depot_tools/create-chromium-git-src \
20+ --replace "/usr/bin/env -S bash -e" "${stdenv.shell}"
21+ substituteInPlace resources/app.asar.unpacked/node_modules/ad-block/node_modules/bloom-filter-cpp/vendor/depot_tools/create-chromium-git-src \
22+ --replace "/usr/bin/env -S bash -e" "${stdenv.shell}"
23+ '';
24+
25+ installPhase = ''
26+ mkdir -p $out/bin $out/opt/RamboxPro $out/share/applications
27+ asar e resources/app.asar $out/opt/RamboxPro/resources/app.asar.unpacked
28+ ln -s ${desktopItem}/share/applications/* $out/share/applications
29+ '';
30+
31+ postFixup = ''
32+ makeWrapper ${electron}/lib/electron/.electron-wrapped $out/bin/ramboxpro \
33+ --add-flags "$out/opt/RamboxPro/resources/app.asar.unpacked --without-update" \
34+ --prefix PATH : ${xdg_utils}/bin
35+ '';
36+
37+ desktopItem = makeDesktopItem {
38+ name = "rambox-pro";
39+ exec = "ramboxpro";
40+ type = "Application";
41+ desktopName = "Rambox Pro";
42+ };
43+
44+ meta = with stdenv.lib; {
45+ description = "Messaging and emailing app that combines common web applications into one";
46+ homepage = https://rambox.pro;
47+ license = licenses.unfree;
48+ maintainers = with maintainers; [ chrisaw ];
49+ platforms = [ "i686-linux" "x86_64-linux" ];
50+ };
51+}
pkgs/top-level/all-packages.nix+2
@@ -5353,6 +5353,8 @@ in
53535353
53545354 rambox = callPackage ../applications/networking/instant-messengers/rambox { };
53555355
5356+ rambox-pro = callPackage ../applications/networking/instant-messengers/rambox/pro.nix { };
5357+
53565358 ranger = callPackage ../applications/misc/ranger { };
53575359
53585360 rarcrack = callPackage ../tools/security/rarcrack { };