Unverified Commit fb466e99 authored by Jonas Heinrich's avatar Jonas Heinrich Committed by GitHub
Browse files

Merge pull request #323215 from pyrox0/viber-openssl3

viber: 16.1.0.37 -> 21.8.0.11 
parents 2059876f f992a17e
Loading
Loading
Loading
Loading
+98 −51
Original line number Diff line number Diff line
{fetchurl, lib, stdenv, dpkg, makeWrapper,
 alsa-lib, cups, curl, dbus, expat, fontconfig, freetype, glib, gst_all_1,
 harfbuzz, libcap, libGL, libGLU, libpulseaudio, libxkbcommon, libxml2, libxslt,
 nspr, nss, openssl_1_1, systemd, wayland, xorg, zlib, ...
{
  fetchurl,
  lib,
  stdenv,
  dpkg,
  makeWrapper,
  alsa-lib,
  brotli,
  cups,
  curl,
  dbus,
  expat,
  fontconfig,
  freetype,
  glib,
  gst_all_1,
  harfbuzz,
  lcms,
  libcap,
  libevent,
  libGL,
  libGLU,
  libkrb5,
  libopus,
  libpulseaudio,
  libxkbcommon,
  libxkbfile,
  libxml2,
  libxslt,
  libwebp,
  mesa,
  nspr,
  nss,
  openssl,
  snappy,
  systemd,
  wayland,
  xorg,
  zlib,
  zstd,
  ...
}:

stdenv.mkDerivation {
  pname = "viber";
  version = "16.1.0.37";
  version = "21.8.0.11";

  src = fetchurl {
    # Official link: https://download.cdn.viber.com/cdn/desktop/Linux/viber.deb
    url = "https://web.archive.org/web/20211119123858/https://download.cdn.viber.com/cdn/desktop/Linux/viber.deb";
    sha256 = "sha256-hOz+EQc2OOlLTPa2kOefPJMUyWvSvrgqgPgBKjWE3p8=";
    url = "https://download.cdn.viber.com/cdn/desktop/Linux/viber.deb";
    hash = "sha256-RrObmN21QOm5nk0R2avgCH0ulrfiUIo2PnyYWvQaGVw=";
  };

  nativeBuildInputs = [ makeWrapper ];
@@ -21,6 +58,7 @@ stdenv.mkDerivation {

  libPath = lib.makeLibraryPath [
    alsa-lib
    brotli
    cups
    curl
    dbus
@@ -31,19 +69,29 @@ stdenv.mkDerivation {
    gst_all_1.gst-plugins-base
    gst_all_1.gstreamer
    harfbuzz
    lcms
    libcap
      libGLU libGL
    libevent
    libGLU
    libGL
    libkrb5
    libopus
    libpulseaudio
    libxkbcommon
    libxkbfile
    libxml2
    libxslt
    libwebp
    mesa
    nspr
    nss
      openssl_1_1
    openssl
    snappy
    stdenv.cc.cc
    systemd
    wayland
    zlib
    zstd

    xorg.libICE
    xorg.libSM
@@ -63,8 +111,7 @@ stdenv.mkDerivation {
    xorg.xcbutilkeysyms
    xorg.xcbutilrenderutil
    xorg.xcbutilwm
  ]
  ;
  ];

  installPhase = ''
    dpkg-deb -x $src $out