nixpkgs/pkgs/applications/networking/browsers/mozilla-plugins/bluejeans/default.nix

58 lines
1.4 KiB
Nix
Raw Normal View History

2015-06-22 14:04:14 +01:00
{ stdenv, fetchurl, xorg, gtk, glib, gdk_pixbuf, dpkg, libXext, libXfixes
, libXrender, libuuid, libXrandr, libXcomposite, libpulseaudio
2015-06-22 14:04:14 +01:00
}:
with stdenv.lib;
let
rpathInstaller = makeLibraryPath
[gtk glib stdenv.cc.cc];
rpathPlugin = makeLibraryPath
2015-10-21 00:24:41 +01:00
([ stdenv.cc.cc gtk 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
version = "2.160.66.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";
sha256 = "1wf9jgd2717gfzm2wb0hxj4i76kczhgnwfhhpiy15zkqdcsmczsr";
2015-06-22 14:04:14 +01:00
};
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
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
};
}