58 stdenv.mkDerivation rec {
60 version = "44.8.0.30404";
63 url = "https://binaries.webex.com/WebexDesktop-Ubuntu-Gold/20240806164911/Webex_ubuntu.7z";
64 sha256 = "770067b495fcc3b376d77de65371f4196d0f1a0d718b84928d24aa6ea752d29b";
123 libPath = "$out/opt/Webex/lib:$out/opt/Webex/bin:${lib.makeLibraryPath buildInputs}";
127 mv Webex_ubuntu/opt .
131 substituteInPlace opt/Webex/bin/webex.desktop --replace /opt $out/opt
138 --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
139 --set-rpath "${libPath}" \
140 opt/Webex/bin/CiscoCollabHost \
141 opt/Webex/bin/CiscoCollabHostCef \
142 opt/Webex/bin/CiscoCollabHostCefWM \
143 opt/Webex/bin/WebexFileSelector \
144 opt/Webex/bin/pxgsettings
145 for each in $(find opt/Webex -type f | grep \\.so); do
146 patchelf --set-rpath "${libPath}" "$each"
151 mkdir -p "$out/bin" "$out/share/applications"
154 ln -s "$out/opt/Webex/bin/CiscoCollabHost" "$out/bin/webex"
155 chmod +x $out/bin/webex
157 mv "$out/opt/Webex/bin/webex.desktop" "$out/share/applications/webex.desktop"
160 passthru.updateScript = writeScript "webex-update-script" ''
161 #!/usr/bin/env nix-shell
162 #!nix-shell -i bash -p curl jq common-updater-scripts
165 channel=gold # blue, green, gold
166 manifest=$(curl -s "https://client-upgrade-a.wbx2.com/client-upgrade/api/v1/webexteamsdesktop/upgrade/@me?channel=$channel&model=ubuntu" | jq '.manifest')
168 url=$(jq -r '.packageLocation' <<< "$manifest")
169 version=$(jq -r '.version' <<< "$manifest")
170 hash=$(jq -r '.checksum' <<< "$manifest")
172 update-source-version ${pname} "$version" "$hash" "$url" --file=./pkgs/applications/networking/instant-messengers/webex/default.nix
176 description = "All-in-one app to call, meet, message, and get work done";
177 homepage = "https://webex.com/";
178 downloadPage = "https://www.webex.com/downloads.html";
179 license = licenses.unfree;
180 maintainers = with lib.maintainers; [ uvnikita ];
181 platforms = [ "x86_64-linux" ];