2023-04-14 20:15:12 -04:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
cmake,
|
|
|
|
pkgs,
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "chatterino7";
|
2023-05-01 21:13:34 -04:00
|
|
|
version = "7.4.3";
|
2023-04-14 20:15:12 -04:00
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "SevenTV";
|
|
|
|
repo = pname;
|
2023-05-01 21:13:34 -04:00
|
|
|
rev = "a86fa75325a5ff697f71dad0ba55a0c02674cf8d";
|
|
|
|
sha256 = "sha256-I9c0KfNZC2gXDylDe2zMDa9PPQTRgxNwD5xcwsYVFZU=";
|
2023-04-14 20:15:12 -04:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
2023-04-23 17:45:37 -04:00
|
|
|
nativeBuildInputs = with pkgs; [cmake pkg-config libsForQt5.qt5.wrapQtAppsHook];
|
|
|
|
buildInputs = with pkgs; [libsForQt5.qt5.qtbase libsForQt5.qt5.qtsvg libsForQt5.qt5.qtmultimedia libsForQt5.qt5.qtimageformats libsForQt5.qt5.qttools boost openssl libsecret];
|
|
|
|
configurationPhase = ''
|
|
|
|
mkdir build && cd build
|
|
|
|
cmake ..
|
2023-04-14 20:15:12 -04:00
|
|
|
'';
|
2023-04-23 17:45:37 -04:00
|
|
|
buildPhase = ''
|
|
|
|
make
|
2023-04-14 20:15:12 -04:00
|
|
|
'';
|
2023-04-23 17:45:37 -04:00
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
mv "bin/chatterino" "$out/bin"
|
|
|
|
''
|
|
|
|
+ ''
|
|
|
|
mkdir -p $out/share/icons/hicolor/256x256/apps
|
|
|
|
cp $src/resources/icon.png $out/share/icons/hicolor/256x256/apps/chatterino.png
|
|
|
|
'';
|
|
|
|
}
|