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

58 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, xorg, gtk2, glib, gdk_pixbuf, dpkg, libXext, libXfixes
, libXrender, libuuid, libXrandr, libXcomposite, libpulseaudio
2015-06-22 15:04:14 +02:00
}:
with stdenv.lib;
let
rpathInstaller = makeLibraryPath
[gtk2 glib stdenv.cc.cc];
2015-06-22 15:04:14 +02:00
rpathPlugin = makeLibraryPath
([ stdenv.cc.cc gtk2 glib xorg.libX11 gdk_pixbuf libXext libXfixes libXrender libXrandr libXcomposite libpulseaudio ] ++ optional (libuuid != null) libuuid);
2015-06-22 15:04:14 +02:00
in
stdenv.mkDerivation rec {
2015-08-17 17:37:53 +02:00
name = "bluejeans-${version}";
2015-06-22 15:04:14 +02:00
version = "2.160.66.8";
2015-06-22 15:04:14 +02:00
src = fetchurl {
2015-08-17 17:37:53 +02:00
url = "https://swdl.bluejeans.com/skinny/bjnplugin_${version}-1_amd64.deb";
sha256 = "1wf9jgd2717gfzm2wb0hxj4i76kczhgnwfhhpiy15zkqdcsmczsr";
2015-06-22 15:04:14 +02: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 17:37:53 +02:00
$plugins/npbjnplugin_${version}.so
2015-06-22 15:04:14 +02:00
patchelf \
--set-rpath "${rpathInstaller}" \
2015-08-17 17:37:53 +02:00
$plugins/npbjninstallplugin_${version}.so
2015-06-22 15:04:14 +02:00
'';
dontStrip = true;
dontPatchELF = true;
passthru.mozillaPlugin = "/lib/mozilla/plugins";
meta = {
homepage = http://bluejeans.com;
license = stdenv.lib.licenses.unfree;
2015-08-17 17:37:53 +02:00
maintainers = with maintainers; [ ocharles kamilchm ];
2015-09-14 19:21:15 +02:00
platforms = stdenv.lib.platforms.linux;
2015-06-22 15:04:14 +02:00
};
}