2023-04-14 20:15:12 -04:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
cmake,
|
|
|
|
pkgs,
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "chatterino7";
|
|
|
|
version = "7.4.2";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "SevenTV";
|
|
|
|
repo = pname;
|
2023-04-14 22:09:55 -04:00
|
|
|
rev = "e76110ce05f769c98e19605746b177d11905868f";
|
|
|
|
sha256 = "sha256-oSP/tKBfnWFh8DNdBsFjQ43Lu5GkhvCWSgU6/Z0vZlI=";
|
2023-04-14 20:15:12 -04:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
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 ..
|
|
|
|
'';
|
|
|
|
buildPhase = ''
|
|
|
|
make
|
|
|
|
'';
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
}
|