Skip to content

Instantly share code, notes, and snippets.

@garbas
Created January 4, 2016 16:18
Show Gist options
  • Save garbas/3abbdddac992b715aa67 to your computer and use it in GitHub Desktop.
Save garbas/3abbdddac992b715aa67 to your computer and use it in GitHub Desktop.
VidyoDesktop
source $stdenv/setup
PATH=$dpkg/bin:$PATH
dpkg -x $src unpacked
mkdir -p $out/bin
cp -r unpacked/* $out/
ln -s $out/usr/bin/VidyoDesktop $out/bin/VidyoDesktop
touch $out/etc/issue
#wrapProgram $out/bin/VidyoDesktop \
# --set PULSE_LATENCY_MSEC "60" \
# --set VIDYO_AUDIO_FRAMEWORK "ALSA"
let
pkgs = import <nixpkgs> {};
inherit (pkgs) stdenv fetchurl buildFHSUserEnv;
VidyoDesktopDeb = stdenv.mkDerivation {
name = "VidyoDesktopDeb";
builder = ./builder.sh;
dpkg = pkgs.dpkg;
src = fetchurl {
url = "https://v.mozilla.com/upload/VidyoDesktopInstaller-ubuntu64-TAG_VD_3_3_0_027.deb";
sha256 = "045f9z421qpcm45bmh98f3h7bd46rdjvcbdpv4rlw9ribncv66dc";
};
buildInputs = [ pkgs.makeWrapper ];
};
in buildFHSUserEnv {
name = "VidyoDesktop";
targetPkgs = pkgs: [ VidyoDesktopDeb ];
multiPkgs = pkgs: with pkgs; [
patchelf dpkg
alsaLib alsaUtils alsaOss alsaTools alsaPlugins
libidn utillinux mesa_glu qt4 zlib
xorg.libXext xorg.libXv xorg.libX11 xorg.libXfixes xorg.libXrandr
xorg.libXScrnSaver
];
extraBuildCommands = ''
ln -s ${VidyoDesktopDeb}/opt $out/opt
'';
runScript = "VidyoDesktop";
# for debugging
#runScript = "bash";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment