9 libPathNative = { packages }: lib.makeLibraryPath packages;
11 stdenv.mkDerivation rec {
12 pname = "rocketchat-desktop";
16 url = "https://github.com/RocketChat/Rocket.Chat.Electron/releases/download/${version}/rocketchat-${version}-linux-amd64.deb";
17 hash = "sha256-lcMxBEcZkJARFd+ZQTAdLQLVy4/SIi4ps8N798PomyM=";
21 wrapGAppsHook3 # to fully work with gnome also needs programs.dconf.enable = true in your configuration.nix
24 buildInputs = with pkgs; [
71 ar p $src data.tar.xz | tar xJ ./opt/ ./usr/
79 ln -s $out/opt/Rocket.Chat/rocketchat-desktop $out/bin/rocketchat-desktop
85 libpath = libPathNative { packages = buildInputs; };
88 app=$out/opt/Rocket.Chat
89 patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
90 --set-rpath "${libpath}:$app" \
91 $app/rocketchat-desktop
92 sed -i -e "s|Exec=.*$|Exec=$out/bin/rocketchat-desktop|" $out/share/applications/rocketchat-desktop.desktop
96 description = "Official Desktop client for Rocket.Chat";
97 mainProgram = "rocketchat-desktop";
98 homepage = "https://github.com/RocketChat/Rocket.Chat.Electron";
99 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
100 license = licenses.mit;
101 maintainers = with maintainers; [ gbtb ];
102 platforms = [ "x86_64-linux" ];