nixpkgs/pkgs/applications/networking/instant-messengers/bluejeans/default.nix

130 lines
2.6 KiB
Nix
Raw Normal View History

2020-03-28 04:59:13 +00:00
{ stdenv
, lib
2020-03-28 04:59:13 +00:00
, fetchurl
, rpmextract
, libnotify
2020-03-28 05:00:05 +00:00
, libuuid
2020-03-28 04:59:13 +00:00
, cairo
2020-03-28 05:00:05 +00:00
, cups
2020-03-28 04:59:13 +00:00
, pango
, fontconfig
, udev
, dbus
2020-03-28 05:00:05 +00:00
, gtk3
2020-03-28 04:59:13 +00:00
, atk
2020-03-28 05:00:05 +00:00
, at-spi2-atk
2020-03-28 04:59:13 +00:00
, expat
, gdk-pixbuf
, freetype
, nspr
, glib
, nss
, libX11
2020-03-28 05:00:05 +00:00
, libXrandr
2020-03-28 04:59:13 +00:00
, libXrender
, libXtst
, libXdamage
2020-03-28 05:00:05 +00:00
, libxcb
, libXcursor
2020-03-28 04:59:13 +00:00
, libXi
, libXext
, libXfixes
2020-03-28 05:00:05 +00:00
, libXft
2020-03-28 04:59:13 +00:00
, libXcomposite
2020-03-28 05:00:05 +00:00
, libXScrnSaver
, alsa-lib
2020-03-28 05:00:05 +00:00
, pulseaudio
, makeWrapper
, xdg-utils
2018-09-02 07:22:07 +00:00
}:
stdenv.mkDerivation rec {
pname = "bluejeans";
version = "2.21.3";
buildNumber = "2";
2018-09-02 07:22:07 +00:00
2020-03-28 05:00:05 +00:00
src = fetchurl {
url = "https://swdl.bluejeans.com/desktop-app/linux/${version}/BlueJeans_${version}.${buildNumber}.rpm";
sha256 = "sha256-a/REuxkqZmLLa7N3CUgUAdq74VMD9D10a/Sx2jOj1QA=";
2020-03-28 05:00:05 +00:00
};
2018-09-02 07:22:07 +00:00
2020-03-28 05:00:05 +00:00
nativeBuildInputs = [ rpmextract makeWrapper ];
2018-09-02 07:22:07 +00:00
libPath =
2021-01-15 05:42:41 +00:00
lib.makeLibraryPath
2020-03-28 04:59:13 +00:00
[
libnotify
2020-03-28 05:00:05 +00:00
libuuid
2020-03-28 04:59:13 +00:00
cairo
2020-03-28 05:00:05 +00:00
cups
2020-03-28 04:59:13 +00:00
pango
fontconfig
2020-03-28 05:00:05 +00:00
gtk3
2020-03-28 04:59:13 +00:00
atk
2020-03-28 05:00:05 +00:00
at-spi2-atk
2020-03-28 04:59:13 +00:00
expat
gdk-pixbuf
dbus
(lib.getLib udev)
2020-03-28 04:59:13 +00:00
freetype
nspr
glib
stdenv.cc.cc.lib
nss
libX11
2020-03-28 05:00:05 +00:00
libXrandr
2020-03-28 04:59:13 +00:00
libXrender
libXtst
libXdamage
2020-03-28 05:00:05 +00:00
libxcb
libXcursor
2020-03-28 04:59:13 +00:00
libXi
libXext
libXfixes
2020-03-28 05:00:05 +00:00
libXft
2020-03-28 04:59:13 +00:00
libXcomposite
2020-03-28 05:00:05 +00:00
libXScrnSaver
alsa-lib
2020-03-28 05:00:05 +00:00
pulseaudio
2020-03-28 04:59:13 +00:00
];
2018-09-02 07:22:07 +00:00
2020-03-28 05:00:05 +00:00
localtime64_stub = ./localtime64_stub.c;
2018-09-02 07:22:07 +00:00
buildCommand = ''
mkdir -p $out/bin/
cd $out
rpmextract $src
2020-03-28 05:00:05 +00:00
mv usr/share share
rmdir usr
patchelf \
2018-09-02 07:22:07 +00:00
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
--replace-needed libudev.so.0 libudev.so.1 \
2020-03-28 05:00:05 +00:00
opt/BlueJeans/bluejeans-v2
patchelf \
2020-03-28 05:00:05 +00:00
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
opt/BlueJeans/resources/BluejeansHelper
cc $localtime64_stub -shared -o "$out"/opt/BlueJeans/liblocaltime64_stub.so
makeWrapper $out/opt/BlueJeans/bluejeans-v2 $out/bin/bluejeans \
--set LD_LIBRARY_PATH "${libPath}":"${placeholder "out"}"/opt/BlueJeans \
--set LD_PRELOAD "$out"/opt/BlueJeans/liblocaltime64_stub.so \
--prefix PATH : ${lib.makeBinPath [ xdg-utils ]}
2020-03-28 05:00:05 +00:00
2020-06-14 19:17:41 +00:00
substituteInPlace "$out"/share/applications/bluejeans-v2.desktop \
--replace "/opt/BlueJeans/bluejeans-v2" "$out/bin/bluejeans"
2020-03-28 05:00:05 +00:00
patchShebangs "$out"
2018-09-02 07:22:07 +00:00
'';
meta = with lib; {
2020-03-28 05:00:05 +00:00
description = "Video, audio, and web conferencing that works together with the collaboration tools you use every day";
homepage = "https://www.bluejeans.com";
license = licenses.unfree;
maintainers = with maintainers; [ ];
2018-09-02 07:22:07 +00:00
platforms = [ "x86_64-linux" ];
};
}