3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/instant-messengers/bluejeans/default.nix

127 lines
2.5 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
2020-03-28 04:59:13 +00:00
, alsaLib
2020-03-28 05:00:05 +00:00
, pulseaudio
, makeWrapper
2018-09-02 08:22:07 +01:00
}:
stdenv.mkDerivation rec {
pname = "bluejeans";
version = "2.17.0";
buildNumber = "11";
2018-09-02 08:22:07 +01: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 = "1h5jbnp5bwy6bpma9a1ia08v7bpz09fm66jsip470k1r7vjjwa68";
2020-03-28 05:00:05 +00:00
};
2018-09-02 08:22:07 +01:00
2020-03-28 05:00:05 +00:00
nativeBuildInputs = [ rpmextract makeWrapper ];
2018-09-02 08:22:07 +01:00
libPath =
stdenv.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
2020-03-28 04:59:13 +00:00
alsaLib
2020-03-28 05:00:05 +00:00
pulseaudio
2020-03-28 04:59:13 +00:00
];
2018-09-02 08:22:07 +01:00
2020-03-28 05:00:05 +00:00
localtime64_stub = ./localtime64_stub.c;
2018-09-02 08:22:07 +01: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 08:22:07 +01: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
2020-06-14 20:17:41 +01: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 08:22:07 +01:00
'';
meta = with stdenv.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; [ veprbl ];
2018-09-02 08:22:07 +01:00
platforms = [ "x86_64-linux" ];
};
}