2020-03-28 04:59:13 +00:00
|
|
|
{ stdenv
|
2020-08-12 18:27:33 +00:00
|
|
|
, 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
|
2021-06-10 02:57:09 +00:00
|
|
|
, alsa-lib
|
2020-03-28 05:00:05 +00:00
|
|
|
, pulseaudio
|
|
|
|
, makeWrapper
|
2021-04-16 16:11:37 +00:00
|
|
|
, xdg-utils
|
2018-09-02 07:22:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "bluejeans";
|
2021-04-16 16:11:37 +00:00
|
|
|
version = "2.21.3";
|
|
|
|
buildNumber = "2";
|
2018-09-02 07:22:07 +00:00
|
|
|
|
2020-03-28 05:00:05 +00:00
|
|
|
src = fetchurl {
|
2020-10-28 21:37:39 +00:00
|
|
|
url = "https://swdl.bluejeans.com/desktop-app/linux/${version}/BlueJeans_${version}.${buildNumber}.rpm";
|
2021-04-16 16:11:37 +00:00
|
|
|
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
|
2020-08-12 18:27:33 +00:00
|
|
|
(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
|
2021-06-10 02:57:09 +00:00
|
|
|
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
|
|
|
|
|
2020-07-08 19:55:09 +00:00
|
|
|
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
|
2021-04-16 16:11:37 +00:00
|
|
|
|
2020-07-08 19:55:09 +00:00
|
|
|
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 \
|
2021-04-16 16:11:37 +00:00
|
|
|
--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
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +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";
|
2019-08-05 17:12:50 +00:00
|
|
|
homepage = "https://www.bluejeans.com";
|
|
|
|
license = licenses.unfree;
|
2021-02-04 18:02:06 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-09-02 07:22:07 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|