biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / networking / instant-messengers / chatterino2 / default.nix
blob0f27e7a7702232b2d0499b10be6c1975d628351e
1 { stdenv, lib, cmake, pkg-config, fetchFromGitHub, qt6, boost, openssl, libsecret }:
3 stdenv.mkDerivation rec {
4   pname = "chatterino2";
5   version = "2.5.0";
6   src = fetchFromGitHub {
7     owner = "Chatterino";
8     repo = pname;
9     rev = "v${version}";
10     sha256 = "sha256-uR2X0NNSLyOx5n3mZcp6+wW/7L7rHHH2MlOF+c0Uzm0=";
11     fetchSubmodules = true;
12   };
13   nativeBuildInputs = [ cmake pkg-config qt6.wrapQtAppsHook ];
14   buildInputs = [
15     qt6.qtbase
16     qt6.qtsvg
17     qt6.qtimageformats
18     qt6.qttools
19     qt6.qt5compat
20     boost
21     openssl
22     libsecret
23   ] ++ lib.optionals stdenv.isLinux [
24     qt6.qtwayland
25   ];
26   cmakeFlags = [ "-DBUILD_WITH_QT6=ON" ];
27   postInstall = lib.optionalString stdenv.isDarwin ''
28     mkdir -p "$out/Applications"
29     mv bin/chatterino.app "$out/Applications/"
30   '' + ''
31     mkdir -p $out/share/icons/hicolor/256x256/apps
32     cp $src/resources/icon.png $out/share/icons/hicolor/256x256/apps/chatterino.png
33   '';
34   meta = with lib; {
35     description = "A chat client for Twitch chat";
36     mainProgram = "chatterino";
37     longDescription = ''
38       Chatterino is a chat client for Twitch chat. It aims to be an
39       improved/extended version of the Twitch web chat. Chatterino 2 is
40       the second installment of the Twitch chat client series
41       "Chatterino".
42     '';
43     homepage = "https://github.com/Chatterino/chatterino2";
44     changelog = "https://github.com/Chatterino/chatterino2/blob/master/CHANGELOG.md";
45     license = licenses.mit;
46     platforms = platforms.unix;
47     maintainers = with maintainers; [ rexim supa ];
48   };