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,
|
2024-04-22 15:56:51 -04:00
|
|
|
qt6,
|
2023-10-24 23:41:54 -04:00
|
|
|
boost,
|
|
|
|
openssl,
|
|
|
|
libsecret,
|
2023-04-14 20:15:12 -04:00
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "chatterino7";
|
2024-05-02 16:58:14 -04:00
|
|
|
version = "7.5.1";
|
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}";
|
2024-05-02 16:58:14 -04:00
|
|
|
sha256 = "sha256-T0H+p9hyNd73gETwLilXN0uzcF75TJgx/LzHqnC099M=";
|
2023-04-14 20:15:12 -04:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
2023-10-24 23:41:54 -04:00
|
|
|
|
2024-04-22 15:56:51 -04:00
|
|
|
nativeBuildInputs = [cmake pkg-config qt6.wrapQtAppsHook];
|
|
|
|
buildInputs = [
|
|
|
|
qt6.qtbase
|
|
|
|
qt6.qtsvg
|
|
|
|
qt6.qtimageformats
|
|
|
|
qt6.qttools
|
|
|
|
qt6.qt5compat
|
|
|
|
qt6.qtwayland
|
|
|
|
boost
|
|
|
|
openssl
|
|
|
|
libsecret
|
|
|
|
];
|
|
|
|
cmakeFlags = ["-DBUILD_WITH_QT6=ON"];
|
2023-10-24 23:41:54 -04:00
|
|
|
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
|
|
|
}
|