2023-03-16 22:00:02 +00:00
|
|
|
{ stdenv, lib, cmake, pkg-config, fetchFromGitHub, qtbase, qtsvg, qtmultimedia, qtimageformats, qttools, boost, openssl, wrapQtAppsHook, libsecret }:
|
2019-05-10 22:31:30 +00:00
|
|
|
|
2022-12-27 21:44:18 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-05-10 22:31:30 +00:00
|
|
|
pname = "chatterino2";
|
2023-03-16 22:00:02 +00:00
|
|
|
version = "2.4.2";
|
2019-05-10 22:31:30 +00:00
|
|
|
src = fetchFromGitHub {
|
2020-09-13 15:57:12 +00:00
|
|
|
owner = "Chatterino";
|
2019-05-10 22:31:30 +00:00
|
|
|
repo = pname;
|
2020-05-21 15:48:57 +00:00
|
|
|
rev = "v${version}";
|
2023-03-16 22:00:02 +00:00
|
|
|
sha256 = "sha256-d/rsY4pgPpA4JcMmoD6AG1DzHovfSERaeuYkMY603kA=";
|
2019-05-10 22:31:30 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
2022-12-27 21:44:18 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
|
2023-03-16 22:00:02 +00:00
|
|
|
buildInputs = [ qtbase qtsvg qtmultimedia qtimageformats qttools boost openssl libsecret ];
|
2020-02-02 01:53:55 +00:00
|
|
|
postInstall = lib.optionalString stdenv.isDarwin ''
|
|
|
|
mkdir -p "$out/Applications"
|
|
|
|
mv bin/chatterino.app "$out/Applications/"
|
2022-06-02 21:40:59 +00:00
|
|
|
'' + ''
|
|
|
|
mkdir -p $out/share/icons/hicolor/256x256/apps
|
|
|
|
cp $src/resources/icon.png $out/share/icons/hicolor/256x256/apps/chatterino.png
|
2020-02-02 01:53:55 +00:00
|
|
|
'';
|
2020-01-22 15:05:34 +00:00
|
|
|
meta = with lib; {
|
2019-05-10 22:31:30 +00:00
|
|
|
description = "A chat client for Twitch chat";
|
|
|
|
longDescription = ''
|
|
|
|
Chatterino is a chat client for Twitch chat. It aims to be an
|
|
|
|
improved/extended version of the Twitch web chat. Chatterino 2 is
|
|
|
|
the second installment of the Twitch chat client series
|
|
|
|
"Chatterino".
|
2020-09-13 15:57:12 +00:00
|
|
|
'';
|
|
|
|
homepage = "https://github.com/Chatterino/chatterino2";
|
|
|
|
changelog = "https://github.com/Chatterino/chatterino2/blob/master/CHANGELOG.md";
|
2019-05-10 22:31:30 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ rexim ];
|
|
|
|
};
|
|
|
|
}
|