2016-09-11 22:24:51 +01:00
|
|
|
{ stdenv, fetchurl, xorg, gtk2, glib, gdk_pixbuf, dpkg, libXext, libXfixes
|
2015-08-30 15:05:57 +01:00
|
|
|
, libXrender, libuuid, libXrandr, libXcomposite, libpulseaudio
|
2015-06-22 14:04:14 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
rpathInstaller = makeLibraryPath
|
2016-09-11 22:24:51 +01:00
|
|
|
[gtk2 glib stdenv.cc.cc];
|
2015-06-22 14:04:14 +01:00
|
|
|
|
|
|
|
rpathPlugin = makeLibraryPath
|
2016-09-11 22:24:51 +01:00
|
|
|
([ stdenv.cc.cc gtk2 glib xorg.libX11 gdk_pixbuf libXext libXfixes libXrender libXrandr libXcomposite libpulseaudio ] ++ optional (libuuid != null) libuuid);
|
2015-06-22 14:04:14 +01:00
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-08-17 16:37:53 +01:00
|
|
|
name = "bluejeans-${version}";
|
2015-06-22 14:04:14 +01:00
|
|
|
|
2016-10-17 22:47:49 +01:00
|
|
|
version = "2.180.71.8";
|
2015-06-22 14:04:14 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-08-17 16:37:53 +01:00
|
|
|
url = "https://swdl.bluejeans.com/skinny/bjnplugin_${version}-1_amd64.deb";
|
2016-10-17 22:47:49 +01:00
|
|
|
sha256 = "1fgjgzss0ghk734xpfidazyknfdn11pmyw77pc3wigl83dvx4nb2";
|
2015-06-22 14:04:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
unpackPhase = "${dpkg}/bin/dpkg-deb -x $src .";
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
mkdir -p $out
|
|
|
|
cp -R usr/lib $out/
|
|
|
|
|
|
|
|
plugins=$out/lib/mozilla/plugins
|
|
|
|
patchelf \
|
|
|
|
--set-rpath "${rpathPlugin}" \
|
2015-08-17 16:37:53 +01:00
|
|
|
$plugins/npbjnplugin_${version}.so
|
2015-06-22 14:04:14 +01:00
|
|
|
|
|
|
|
patchelf \
|
|
|
|
--set-rpath "${rpathInstaller}" \
|
2015-08-17 16:37:53 +01:00
|
|
|
$plugins/npbjninstallplugin_${version}.so
|
2015-06-22 14:04:14 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
dontStrip = true;
|
|
|
|
dontPatchELF = true;
|
|
|
|
|
|
|
|
passthru.mozillaPlugin = "/lib/mozilla/plugins";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://bluejeans.com;
|
|
|
|
license = stdenv.lib.licenses.unfree;
|
2015-08-17 16:37:53 +01:00
|
|
|
maintainers = with maintainers; [ ocharles kamilchm ];
|
2015-09-14 18:21:15 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2015-06-22 14:04:14 +01:00
|
|
|
};
|
|
|
|
}
|