Created
January 4, 2016 16:18
-
-
Save garbas/3abbdddac992b715aa67 to your computer and use it in GitHub Desktop.
VidyoDesktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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