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