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-12-29 12:51:51 -05:00
rev = "a997941f822fae19a613799ff20de4d7a3f71e07";
sha256 = "sha256-m0IE6cZ+JSjghD3WaVOlSRABcbnafiW+VYaSGQ4CBqU=";
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
}