Compare commits
No commits in common. "60e18856a7f5eacb483dbb30ec34415d311aa1ca" and "4613b2650337ce150d66dbba06509925814cb67a" have entirely different histories.
60e18856a7
...
4613b26503
@ -104,6 +104,5 @@
|
|||||||
inputs.swaysw.packages.x86_64-linux.swaysw
|
inputs.swaysw.packages.x86_64-linux.swaysw
|
||||||
inputs.nvim.packages.x86_64-linux.nvim
|
inputs.nvim.packages.x86_64-linux.nvim
|
||||||
(import ../packages/zapzap/default.nix {inherit pkgs;})
|
(import ../packages/zapzap/default.nix {inherit pkgs;})
|
||||||
(pkgs.callPackage ../packages/viber/default.nix {})
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -18,11 +18,11 @@
|
|||||||
window.commands = [
|
window.commands = [
|
||||||
{
|
{
|
||||||
command = "move scratchpad, resize set 1152 648";
|
command = "move scratchpad, resize set 1152 648";
|
||||||
criteria = {app_id = "pulsemixer|python3|com.rtosta.zapzap|whatsapp-for-linux|com.viber";};
|
criteria = {app_id = "pulsemixer|python3|com.rtosta.zapzap|whatsapp-for-linux|com.viber.Viber";};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
command = "move scratchpad, resize set 1502 845";
|
command = "move scratchpad, resize set 1502 845";
|
||||||
criteria = {app_id = "com.viber";};
|
criteria = {class = "ViberPC";};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
command = "floating enable";
|
command = "floating enable";
|
||||||
@ -52,7 +52,13 @@
|
|||||||
|
|
||||||
bars = [
|
bars = [
|
||||||
{
|
{
|
||||||
command = "${pkgs.waybar}/bin/waybar";
|
position = "top";
|
||||||
|
fonts = {
|
||||||
|
names = ["Iosevka" "FontAwesome"];
|
||||||
|
style = "Bold Semi-Condensed";
|
||||||
|
size = 12.0;
|
||||||
|
};
|
||||||
|
statusCommand = "i3status-rs ~/.config/i3status-rust/config-top.toml";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -101,7 +107,7 @@
|
|||||||
"Mod4+l" = ''
|
"Mod4+l" = ''
|
||||||
exec swaymsg [app_id="python3"] scratchpad show || exec foot -a python3 python3'';
|
exec swaymsg [app_id="python3"] scratchpad show || exec foot -a python3 python3'';
|
||||||
"Mod4+h" = "exec swaymsg [app_id=com.rtosta.zapzap] scratchpad show || exec zapzap";
|
"Mod4+h" = "exec swaymsg [app_id=com.rtosta.zapzap] scratchpad show || exec zapzap";
|
||||||
"Mod4+j" = "exec swaymsg [app_id=com.viber] scratchpad show || exec viber";
|
"Mod4+j" = "exec swaymsg [app_id=com.viber.Viber] scratchpad show";
|
||||||
"Mod4+y" = ''
|
"Mod4+y" = ''
|
||||||
exec swaymsg [app_id="pulsemixer"] scratchpad show || exec foot -a pulsemixer pulsemixer'';
|
exec swaymsg [app_id="pulsemixer"] scratchpad show || exec foot -a pulsemixer pulsemixer'';
|
||||||
|
|
||||||
|
@ -1,155 +0,0 @@
|
|||||||
{
|
|
||||||
alsa-lib,
|
|
||||||
brotli,
|
|
||||||
cups,
|
|
||||||
curl,
|
|
||||||
dbus,
|
|
||||||
dpkg,
|
|
||||||
expat,
|
|
||||||
fetchurl,
|
|
||||||
fontconfig,
|
|
||||||
freetype,
|
|
||||||
glib,
|
|
||||||
gst_all_1,
|
|
||||||
harfbuzz,
|
|
||||||
krb5,
|
|
||||||
lcms,
|
|
||||||
lib,
|
|
||||||
libcap,
|
|
||||||
libevent,
|
|
||||||
libGL,
|
|
||||||
libGLU,
|
|
||||||
libopus,
|
|
||||||
libpulseaudio,
|
|
||||||
libwebp,
|
|
||||||
libxkbcommon,
|
|
||||||
libxml2,
|
|
||||||
libxslt,
|
|
||||||
makeWrapper,
|
|
||||||
mesa,
|
|
||||||
nspr,
|
|
||||||
nss,
|
|
||||||
openssl,
|
|
||||||
snappy,
|
|
||||||
stdenv,
|
|
||||||
systemd,
|
|
||||||
wayland,
|
|
||||||
xorg,
|
|
||||||
zlib,
|
|
||||||
zstd,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
pname = "viber";
|
|
||||||
version = "21.0.0.1";
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
# Official link: https://download.cdn.viber.com/cdn/desktop/Linux/viber.deb
|
|
||||||
url = "https://web.archive.org/web/20230906015353if_/https://download.cdn.viber.com/cdn/desktop/Linux/viber.deb";
|
|
||||||
sha256 = "0q34mwbk0i2vj2f16hk7pyshl8fqwym3lyr7iss22qw8cxx3mcg3";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [makeWrapper];
|
|
||||||
buildInputs = [dpkg];
|
|
||||||
|
|
||||||
dontUnpack = true;
|
|
||||||
|
|
||||||
libPath = lib.makeLibraryPath [
|
|
||||||
alsa-lib
|
|
||||||
brotli
|
|
||||||
cups
|
|
||||||
curl
|
|
||||||
dbus
|
|
||||||
expat
|
|
||||||
fontconfig
|
|
||||||
freetype
|
|
||||||
glib
|
|
||||||
gst_all_1.gst-plugins-bad
|
|
||||||
gst_all_1.gst-plugins-base
|
|
||||||
gst_all_1.gstreamer
|
|
||||||
harfbuzz
|
|
||||||
krb5
|
|
||||||
lcms
|
|
||||||
libcap
|
|
||||||
libevent
|
|
||||||
libGLU
|
|
||||||
libGL
|
|
||||||
libopus
|
|
||||||
libpulseaudio
|
|
||||||
libwebp
|
|
||||||
libxkbcommon
|
|
||||||
libxml2
|
|
||||||
libxslt
|
|
||||||
mesa
|
|
||||||
nspr
|
|
||||||
nss
|
|
||||||
openssl
|
|
||||||
snappy
|
|
||||||
stdenv.cc.cc
|
|
||||||
systemd
|
|
||||||
wayland
|
|
||||||
zlib
|
|
||||||
zstd
|
|
||||||
|
|
||||||
xorg.libICE
|
|
||||||
xorg.libSM
|
|
||||||
xorg.libX11
|
|
||||||
xorg.libxcb
|
|
||||||
xorg.libXcomposite
|
|
||||||
xorg.libXcursor
|
|
||||||
xorg.libXdamage
|
|
||||||
xorg.libXext
|
|
||||||
xorg.libXfixes
|
|
||||||
xorg.libXi
|
|
||||||
xorg.libXrandr
|
|
||||||
xorg.libXrender
|
|
||||||
xorg.libXScrnSaver
|
|
||||||
xorg.libXtst
|
|
||||||
xorg.xcbutilimage
|
|
||||||
xorg.xcbutilkeysyms
|
|
||||||
xorg.xcbutilrenderutil
|
|
||||||
xorg.xcbutilwm
|
|
||||||
xorg.libxkbfile
|
|
||||||
];
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
dpkg-deb -x $src $out
|
|
||||||
mkdir -p $out/bin
|
|
||||||
|
|
||||||
# Soothe nix-build "suspicions"
|
|
||||||
chmod -R g-w $out
|
|
||||||
|
|
||||||
for file in $(find $out -type f \( -perm /0111 -o -name \*.so\* \) ); do
|
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$file" || true
|
|
||||||
patchelf --set-rpath $libPath:$out/opt/viber/lib $file || true
|
|
||||||
done
|
|
||||||
|
|
||||||
# qt.conf is not working, so override everything using environment variables
|
|
||||||
wrapProgram $out/opt/viber/Viber \
|
|
||||||
--set QT_PLUGIN_PATH "$out/opt/viber/plugins" \
|
|
||||||
--set QT_XKB_CONFIG_ROOT "${xorg.xkeyboardconfig}/share/X11/xkb" \
|
|
||||||
--set QTCOMPOSE "${xorg.libX11.out}/share/X11/locale" \
|
|
||||||
--set QML2_IMPORT_PATH "$out/opt/viber/qml"
|
|
||||||
ln -s $out/opt/viber/Viber $out/bin/viber
|
|
||||||
|
|
||||||
mv $out/usr/share $out/share
|
|
||||||
rm -rf $out/usr
|
|
||||||
|
|
||||||
# Fix the desktop link
|
|
||||||
substituteInPlace $out/share/applications/viber.desktop \
|
|
||||||
--replace /opt/viber/Viber $out/opt/viber/Viber \
|
|
||||||
--replace /usr/share/ $out/share/
|
|
||||||
'';
|
|
||||||
|
|
||||||
dontStrip = true;
|
|
||||||
dontPatchELF = true;
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = "https://www.viber.com";
|
|
||||||
description = "An instant messaging and Voice over IP (VoIP) app";
|
|
||||||
sourceProvenance = with lib.sourceTypes; [binaryNativeCode];
|
|
||||||
license = lib.licenses.unfree;
|
|
||||||
platforms = ["x86_64-linux"];
|
|
||||||
maintainers = with lib.maintainers; [jagajaga];
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user