2023-04-14 20:15:12 -04:00
|
|
|
{
|
|
|
|
stdenv,
|
2023-05-25 15:03:52 -04:00
|
|
|
lib,
|
2023-10-24 23:41:54 -04:00
|
|
|
cmake,
|
|
|
|
pkg-config,
|
|
|
|
fetchFromGitHub,
|
|
|
|
qtbase,
|
|
|
|
qtsvg,
|
|
|
|
qtmultimedia,
|
|
|
|
qtimageformats,
|
|
|
|
qttools,
|
|
|
|
boost,
|
|
|
|
openssl,
|
|
|
|
wrapQtAppsHook,
|
|
|
|
libsecret,
|
2023-04-14 20:15:12 -04:00
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "chatterino7";
|
2023-09-28 22:15:21 -04:00
|
|
|
version = "7.4.6";
|
2023-10-24 23:41:54 -04:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-04-14 20:15:12 -04:00
|
|
|
owner = "SevenTV";
|
|
|
|
repo = pname;
|
2024-03-29 18:27:04 -04:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-6F27GVknSwFDYARdkgE31Oufz557vBKrcDLo9csRWPA=";
|
2023-04-14 20:15:12 -04:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
2023-10-24 23:41:54 -04:00
|
|
|
|
|
|
|
nativeBuildInputs = [cmake pkg-config wrapQtAppsHook];
|
|
|
|
buildInputs = [qtbase qtsvg qtmultimedia qtimageformats qttools boost openssl libsecret];
|
|
|
|
|
|
|
|
postInstall =
|
2023-04-23 17:45:37 -04:00
|
|
|
''
|
|
|
|
mkdir -p "$out/bin"
|
2023-05-25 15:03:52 -04:00
|
|
|
cp "bin/chatterino" "$out/bin"
|
2023-04-23 17:45:37 -04:00
|
|
|
''
|
|
|
|
+ ''
|
|
|
|
mkdir -p $out/share/icons/hicolor/256x256/apps
|
|
|
|
cp $src/resources/icon.png $out/share/icons/hicolor/256x256/apps/chatterino.png
|
|
|
|
'';
|
2023-05-25 15:03:52 -04:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Chat client for twitch.tv";
|
2024-03-29 18:27:04 -04:00
|
|
|
mainProgram = "chatterino";
|
2023-10-24 23:41:54 -04:00
|
|
|
longDescription = ''
|
|
|
|
Chatterino7 is a fork of Chatterino 2.
|
|
|
|
This fork mainly contains features that aren't accepted into Chatterino 2,
|
|
|
|
most notably 7TV subscriber features.
|
|
|
|
'';
|
2023-05-25 15:03:52 -04:00
|
|
|
homepage = "https://github.com/SevenTV/chatterino7";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [notohh];
|
|
|
|
};
|
2023-04-23 17:45:37 -04:00
|
|
|
}
|