bluejeans: 1.36.9 -> 2.1.0

This commit is contained in:
Dmitry Kalinkin 2020-03-28 01:00:05 -04:00
parent d5e41b6740
commit 0df2d9f900
3 changed files with 60 additions and 31 deletions

View File

@ -2,56 +2,65 @@
, fetchurl , fetchurl
, rpmextract , rpmextract
, patchelf , patchelf
, patchelfUnstable
, libnotify , libnotify
, libcap , libuuid
, cairo , cairo
, cups
, pango , pango
, fontconfig , fontconfig
, udev , udev
, dbus , dbus
, gtk2 , gtk3
, atk , atk
, at-spi2-atk
, expat , expat
, gdk-pixbuf , gdk-pixbuf
, freetype , freetype
, nspr , nspr
, glib , glib
, nss , nss
, gconf
, libX11 , libX11
, libXrandr
, libXrender , libXrender
, libXtst , libXtst
, libXdamage , libXdamage
, libxcb
, libXcursor
, libXi , libXi
, libXext , libXext
, libXfixes , libXfixes
, libXft
, libXcomposite , libXcomposite
, libXScrnSaver
, alsaLib , alsaLib
, bash , pulseaudio
, makeWrapper
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "bluejeans"; pname = "bluejeans";
version = "1.36.9"; version = "2.1.0";
src = src = fetchurl {
fetchurl { url = "https://swdl.bluejeans.com/desktop-app/linux/${version}/BlueJeans.rpm";
url = "https://swdl.bluejeans.com/desktop/linux/1.36/${version}/bluejeans-${version}.x86_64.rpm"; sha256 = "1zhh0pla5gk75p8x84va9flvnk456pbcm1n6x8l82c9682fwr7dd";
sha256 = "0sbv742pzqd2cxn3kq10lfi16jah486i9kyrmi8l1rpb9fhyw2m1"; };
};
nativeBuildInputs = [ patchelf rpmextract ]; nativeBuildInputs = [ rpmextract makeWrapper ];
libPath = libPath =
stdenv.lib.makeLibraryPath stdenv.lib.makeLibraryPath
[ [
libnotify libnotify
libcap libuuid
cairo cairo
cups
pango pango
fontconfig fontconfig
gtk2 gtk3
atk atk
at-spi2-atk
expat expat
gdk-pixbuf gdk-pixbuf
dbus dbus
@ -59,41 +68,53 @@ stdenv.mkDerivation rec {
freetype freetype
nspr nspr
glib glib
stdenv.cc
stdenv.cc.cc.lib stdenv.cc.cc.lib
nss nss
gconf
libX11 libX11
libXrandr
libXrender libXrender
libXtst libXtst
libXdamage libXdamage
libxcb
libXcursor
libXi libXi
libXext libXext
libXfixes libXfixes
libXft
libXcomposite libXcomposite
libXScrnSaver
alsaLib alsaLib
pulseaudio
]; ];
localtime64_stub = ./localtime64_stub.c;
buildCommand = '' buildCommand = ''
mkdir -p $out/bin/ mkdir -p $out/bin/
cd $out cd $out
rpmextract $src rpmextract $src
patchelf \ mv usr/share share
rmdir usr
${patchelf}/bin/patchelf \
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \ --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
opt/bluejeans/bluejeans-bin
patchelf \
--set-rpath ${libPath} \
opt/bluejeans/bluejeans-bin
patchelf \
--replace-needed libudev.so.0 libudev.so.1 \ --replace-needed libudev.so.0 libudev.so.1 \
opt/bluejeans/bluejeans-bin opt/BlueJeans/bluejeans-v2
ln -s $out/opt/bluejeans/bluejeans $out/bin/bluejeans ${patchelfUnstable}/bin/patchelf \
chmod +x $out/bin/bluejeans --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
patchShebangs $out 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
patchShebangs "$out"
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Video, audio, and web conferencing that works together with the collaboration tools you use every day."; description = "Video, audio, and web conferencing that works together with the collaboration tools you use every day";
homepage = "https://www.bluejeans.com"; homepage = "https://www.bluejeans.com";
license = licenses.unfree; license = licenses.unfree;
maintainers = with maintainers; [ veprbl ]; maintainers = with maintainers; [ veprbl ];

View File

@ -0,0 +1,12 @@
#include <stdio.h>
#include <stdlib.h>
void *localtime64() {
fprintf(stderr, "nixpkgs: call into localtime64_r\n");
abort();
}
void *localtime64_r() {
fprintf(stderr, "nixpkgs: call into localtime64_r\n");
abort();
}

View File

@ -18773,11 +18773,7 @@ in
bluejeans = callPackage ../applications/networking/browsers/mozilla-plugins/bluejeans { }; bluejeans = callPackage ../applications/networking/browsers/mozilla-plugins/bluejeans { };
bluejeans-gui = callPackage ../applications/networking/instant-messengers/bluejeans { bluejeans-gui = callPackage ../applications/networking/instant-messengers/bluejeans { };
gconf = pkgs.gnome2.GConf;
inherit (pkgs.xorg) libX11 libXrender libXtst libXdamage
libXi libXext libXfixes libXcomposite;
};
blugon = callPackage ../applications/misc/blugon { }; blugon = callPackage ../applications/misc/blugon { };