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

51 lines
1.7 KiB
Nix
Raw Normal View History

2018-09-02 09:22:07 +02:00
{ stdenv, fetchurl, rpmextract, patchelf, libnotify, libcap, cairo, pango, fontconfig, udev, dbus
2019-05-22 13:03:39 +02:00
, gtk2, atk, expat, gdk-pixbuf, freetype, nspr, glib, nss, gconf, libX11, libXrender, libXtst, libXdamage
2018-09-02 09:22:07 +02:00
, libXi, libXext, libXfixes, libXcomposite, alsaLib, bash
}:
stdenv.mkDerivation rec {
pname = "bluejeans";
2018-09-02 09:22:07 +02:00
version = "1.36.9";
src =
fetchurl {
url = "https://swdl.bluejeans.com/desktop/linux/1.36/${version}/bluejeans-${version}.x86_64.rpm";
sha256 = "0sbv742pzqd2cxn3kq10lfi16jah486i9kyrmi8l1rpb9fhyw2m1";
};
nativeBuildInputs = [ patchelf rpmextract ];
2018-09-02 09:22:07 +02:00
libPath =
stdenv.lib.makeLibraryPath
2019-05-22 13:03:39 +02:00
[ libnotify libcap cairo pango fontconfig gtk2 atk expat gdk-pixbuf dbus udev.lib
2018-09-02 09:22:07 +02:00
freetype nspr glib stdenv.cc stdenv.cc.cc.lib nss gconf libX11 libXrender libXtst libXdamage
libXi libXext libXfixes libXcomposite alsaLib
];
buildCommand = ''
mkdir -p $out/bin/
cd $out
rpmextract $src
patchelf \
--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 \
opt/bluejeans/bluejeans-bin
ln -s $out/opt/bluejeans/bluejeans $out/bin/bluejeans
chmod +x $out/bin/bluejeans
patchShebangs $out
2018-09-02 09:22:07 +02:00
'';
meta = with stdenv.lib; {
2018-09-02 09:22:07 +02: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" ];
};
}