Skip to content

Commit

Permalink
alfaview: init at 8.32.0
Browse files Browse the repository at this point in the history
  • Loading branch information
P. R. d. O committed Nov 30, 2021
1 parent 14d0efe commit 2253021
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{ stdenv, lib, fetchurl, dpkg, autoPatchelfHook, makeWrapper
, alsa-lib, dbus, fontconfig, freetype, glib, gst_all_1, libGL
, libinput, libpulseaudio, libsecret, libtiff, libxkbcommon
, mesa, openssl, systemd, xorg }:

stdenv.mkDerivation rec {
pname = "alfaview";
version = "8.32.0";

src = fetchurl {
url = "https://production-alfaview-assets.alfaview.com/stable/linux/${pname}_${version}.deb";
sha256 = "sha256-cBf/9MdNXhFRYPAOhQQ8j3rpY4JYh/+NyA7Eji9/E9Q=";
};

nativeBuildInputs = [
dpkg
makeWrapper
autoPatchelfHook
];

buildInputs = [
alsa-lib
dbus
fontconfig
freetype
glib
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-base
libGL
libinput
libpulseaudio
libsecret
libtiff
libxkbcommon
mesa
openssl
stdenv.cc.cc
systemd
xorg.libX11
xorg.xcbutilwm
xorg.xcbutilimage
xorg.xcbutilkeysyms
xorg.xcbutilrenderutil
];

libPath = lib.makeLibraryPath buildInputs;

dontBuild = true;
dontConfigure = true;

unpackPhase = ''
dpkg-deb -x ${src} ./
'';

installPhase = ''
runHook preInstall
mv usr $out
mv opt $out
substituteInPlace $out/share/applications/alfaview.desktop \
--replace "/opt/alfaview" "$out/bin" \
--replace "/usr/share/pixmaps/alfaview_production.png" alfaview_production
makeWrapper $out/opt/alfaview/alfaview $out/bin/alfaview \
--prefix LD_LIBRARY_PATH : ${libPath}
runHook postInstall
'';

meta = with lib; {
description = "Video-conferencing application, specialized in virtual online meetings, seminars, training sessions and conferences";
homepage = "https://alfaview.com";
license = licenses.unfree;
maintainers = with maintainers; [ wolfangaukang ];
platforms = [ "x86_64-linux" ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23989,6 +23989,8 @@ with pkgs;

alembic = callPackage ../development/libraries/alembic {};

alfaview = callPackage ../applications/networking/instant-messengers/alfaview { };

alchemy = callPackage ../applications/graphics/alchemy { };

alock = callPackage ../misc/screensavers/alock { };
Expand Down

0 comments on commit 2253021

Please sign in to comment.