2020-02-02 03:55:55 +00:00
|
|
|
{ mkDerivation, stdenv, lib, pkgconfig, fetchFromGitHub, qtbase, qtsvg, qtmultimedia, qmake, boost, openssl, wrapQtAppsHook }:
|
2019-05-10 23:31:30 +01:00
|
|
|
|
2020-01-22 15:05:34 +00:00
|
|
|
mkDerivation rec {
|
2019-05-10 23:31:30 +01:00
|
|
|
pname = "chatterino2";
|
|
|
|
version = "unstable-2019-05-11";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fourtf";
|
|
|
|
repo = pname;
|
|
|
|
rev = "8c46cbf571dc8fd77287bf3186445ff52b1d1aaf";
|
|
|
|
sha256 = "0i2385hamhd9i7jdy906cfrd81cybw524j92l87c8pzrkxphignk";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
2020-02-02 03:55:55 +00:00
|
|
|
nativeBuildInputs = [ qmake pkgconfig wrapQtAppsHook ];
|
2019-05-10 23:31:30 +01:00
|
|
|
buildInputs = [ qtbase qtsvg qtmultimedia boost openssl ];
|
2020-02-02 01:53:55 +00:00
|
|
|
postInstall = lib.optionalString stdenv.isDarwin ''
|
|
|
|
mkdir -p "$out/Applications"
|
|
|
|
mv bin/chatterino.app "$out/Applications/"
|
|
|
|
'';
|
2020-02-02 03:55:55 +00:00
|
|
|
postFixup = lib.optionalString stdenv.isDarwin ''
|
|
|
|
wrapQtApp "$out/Applications/chatterino.app/Contents/MacOS/chatterino"
|
|
|
|
'';
|
2020-01-22 15:05:34 +00:00
|
|
|
meta = with lib; {
|
2019-05-10 23:31:30 +01: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".
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/fourtf/chatterino2";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ rexim ];
|
|
|
|
};
|
|
|
|
}
|