chatterino7: init at 7.4.2.e76110c

This commit is contained in:
notohh 2023-04-14 20:15:12 -04:00
parent 0ff4e202d5
commit 3a30e96562
Signed by: notohh
GPG key ID: BD47506D475EE86D
4 changed files with 42 additions and 6 deletions

View file

@ -1,6 +1,7 @@
{config, pkgs, ...}:
{
pkgs,
...
}: {
imports = [
../../home
@ -23,6 +24,7 @@ imports = [
username = "notoh";
homeDirectory = "/home/notoh";
packages = with pkgs; [
(callPackage ../../pkgs/chatterino7 {})
chromium
bitwarden
discord

View file

@ -1,3 +1,7 @@
<h1 align="center">:package: pkgs</h1>
not in use yet, will house packages once i get comfortable writing them
this directory hosts derivations of packages not found in nixpkgs, and overrides.
name | description
--------------- | -----------
`chatterino7` | [7tv fork](https://github.com/SevenTV/chatterino7)of chatterino2, a chat client for twitch.tv

View file

@ -0,0 +1,33 @@
{
stdenv,
lib,
cmake,
pkgs,
}:
stdenv.mkDerivation rec {
pname = "chatterino7";
version = "7.4.2";
src = pkgs.fetchFromGitHub {
owner = "SevenTV";
repo = pname;
rev = "v${version}";
sha256 = "sha256-WHdrFUTTuPN+U9BIsE6Ht2EdwIqWfVJzlwDg0Bwvr/w=";
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
'';
}

View file

@ -1,3 +0,0 @@
{ pkgs ? (import ../nixpkgs.nix) { } }: {
}