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

126 lines
2.5 KiB
Nix
Raw Normal View History

2020-03-28 05:59:13 +01:00
{ stdenv
, lib
2020-03-28 05:59:13 +01:00
, fetchurl
, rpmextract
, libnotify
2020-03-28 06:00:05 +01:00
, libuuid
2020-03-28 05:59:13 +01:00
, cairo
2020-03-28 06:00:05 +01:00
, cups
2020-03-28 05:59:13 +01:00
, pango
, fontconfig
, udev
, dbus
2020-03-28 06:00:05 +01:00
, gtk3
2020-03-28 05:59:13 +01:00
, atk
2020-03-28 06:00:05 +01:00
, at-spi2-atk
2020-03-28 05:59:13 +01:00
, expat
, gdk-pixbuf
, freetype
, nspr
, glib
, nss
, libX11
2020-03-28 06:00:05 +01:00
, libXrandr
2020-03-28 05:59:13 +01:00
, libXrender
, libXtst
, libXdamage
2020-03-28 06:00:05 +01:00
, libxcb
, libXcursor
2020-03-28 05:59:13 +01:00
, libXi
, libXext
, libXfixes
2020-03-28 06:00:05 +01:00
, libXft
2020-03-28 05:59:13 +01:00
, libXcomposite
2020-03-28 06:00:05 +01:00
, libXScrnSaver
2020-03-28 05:59:13 +01:00
, alsaLib
2020-03-28 06:00:05 +01:00
, pulseaudio
, makeWrapper
2018-09-02 09:22:07 +02:00
}:
stdenv.mkDerivation rec {
pname = "bluejeans";
2020-07-06 10:56:48 +02:00
version = "2.4.0";
2018-09-02 09:22:07 +02:00
2020-03-28 06:00:05 +01:00
src = fetchurl {
url = "https://swdl.bluejeans.com/desktop-app/linux/${version}/BlueJeans.rpm";
2020-07-06 10:56:48 +02:00
sha256 = "180hc854ngwfn6y6nsrfn74rv78cxhq6sgshrca5zqv6wq3l98g0";
2020-03-28 06:00:05 +01:00
};
2018-09-02 09:22:07 +02:00
2020-03-28 06:00:05 +01:00
nativeBuildInputs = [ rpmextract makeWrapper ];
2018-09-02 09:22:07 +02:00
libPath =
stdenv.lib.makeLibraryPath
2020-03-28 05:59:13 +01:00
[
libnotify
2020-03-28 06:00:05 +01:00
libuuid
2020-03-28 05:59:13 +01:00
cairo
2020-03-28 06:00:05 +01:00
cups
2020-03-28 05:59:13 +01:00
pango
fontconfig
2020-03-28 06:00:05 +01:00
gtk3
2020-03-28 05:59:13 +01:00
atk
2020-03-28 06:00:05 +01:00
at-spi2-atk
2020-03-28 05:59:13 +01:00
expat
gdk-pixbuf
dbus
(lib.getLib udev)
2020-03-28 05:59:13 +01:00
freetype
nspr
glib
stdenv.cc.cc.lib
nss
libX11
2020-03-28 06:00:05 +01:00
libXrandr
2020-03-28 05:59:13 +01:00
libXrender
libXtst
libXdamage
2020-03-28 06:00:05 +01:00
libxcb
libXcursor
2020-03-28 05:59:13 +01:00
libXi
libXext
libXfixes
2020-03-28 06:00:05 +01:00
libXft
2020-03-28 05:59:13 +01:00
libXcomposite
2020-03-28 06:00:05 +01:00
libXScrnSaver
2020-03-28 05:59:13 +01:00
alsaLib
2020-03-28 06:00:05 +01:00
pulseaudio
2020-03-28 05:59:13 +01:00
];
2018-09-02 09:22:07 +02:00
2020-03-28 06:00:05 +01:00
localtime64_stub = ./localtime64_stub.c;
2018-09-02 09:22:07 +02:00
buildCommand = ''
mkdir -p $out/bin/
cd $out
rpmextract $src
2020-03-28 06:00:05 +01:00
mv usr/share share
rmdir usr
patchelf \
2018-09-02 09:22:07 +02:00
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
--replace-needed libudev.so.0 libudev.so.1 \
2020-03-28 06:00:05 +01:00
opt/BlueJeans/bluejeans-v2
patchelf \
2020-03-28 06:00:05 +01: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 21:17:41 +02:00
substituteInPlace "$out"/share/applications/bluejeans-v2.desktop \
--replace "/opt/BlueJeans/bluejeans-v2" "$out/bin/bluejeans"
2020-03-28 06:00:05 +01:00
patchShebangs "$out"
2018-09-02 09:22:07 +02:00
'';
meta = with stdenv.lib; {
2020-03-28 06:00:05 +01: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 09:22:07 +02:00
platforms = [ "x86_64-linux" ];
};
}