snowflake/pkgs/chatterino7/default.nix

53 lines
1.3 KiB
Nix
Raw Normal View History

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";
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;
2023-11-06 22:53:04 -05:00
rev = "178a9b3b6c7314082e6b3b17b1aaf3c01eca6e73";
sha256 = "sha256-lJlxEG3JzGVVBkBhHh1226a0cQ6sgFOJfqLoIgHh3GY=";
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";
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
}