From 084c3e7844313f20da6bec7932e60ad314f048c9 Mon Sep 17 00:00:00 2001 From: Wanderson Ferreira Date: Sun, 28 Mar 2021 19:21:33 -0300 Subject: [PATCH] whatsapp-for-linux: init-at 1.1.5 Whataspp is widely used in several contries as default messaging system. We can rely on browser-based solution but an app is preferred method for several users. --- .../whatsapp-for-linux/default.nix | 38 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/applications/networking/instant-messengers/whatsapp-for-linux/default.nix diff --git a/pkgs/applications/networking/instant-messengers/whatsapp-for-linux/default.nix b/pkgs/applications/networking/instant-messengers/whatsapp-for-linux/default.nix new file mode 100644 index 000000000000..7c0f80d22383 --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/whatsapp-for-linux/default.nix @@ -0,0 +1,38 @@ +{ fetchFromGitHub, lib, stdenv, gnome3, cmake, pkg-config, + libappindicator-gtk3, gst_all_1, pcre }: + +stdenv.mkDerivation rec { + pname = "whatsapp-for-linux"; + version = "1.1.5"; + + src = fetchFromGitHub { + owner = "eneshecan"; + repo = pname; + rev = "v${version}"; + sha256 = "1gzahls4givd2kbjdwx6yb3jv7a3r1krw40qihiz7hkamkrpaiaz"; + }; + + nativeBuildInputs = [ + cmake + pkg-config + ]; + + buildInputs = [ + gnome3.gtkmm + gnome3.webkitgtk + libappindicator-gtk3 + gst_all_1.gst-plugins-base + gst_all_1.gst-plugins-good + gst_all_1.gst-plugins-bad + gst_all_1.gst-libav + pcre + ]; + + meta = with lib; { + homepage = "https://github.com/eneshecan/whatsapp-for-linux"; + description = "Whatsapp desktop messaging app"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ bartuka ]; + platforms = [ "x86_64-linux" ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b50351e6e67c..0711febce906 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13340,6 +13340,8 @@ in vtable-dumper = callPackage ../development/tools/misc/vtable-dumper { }; + whatsapp-for-linux = callPackage ../applications/networking/instant-messengers/whatsapp-for-linux { }; + whatstyle = callPackage ../development/tools/misc/whatstyle { inherit (llvmPackages) clang-unwrapped; };