Files
nixpkgs/pkgs/by-name/ch/chatterino2/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

54 lines
1.4 KiB
Nix

{
lib,
callPackage,
fetchFromGitHub,
gitUpdater,
}:
(callPackage ./common.nix { }).overrideAttrs (
finalAttrs: _: {
pname = "chatterino2";
version = "2.5.4";
src = fetchFromGitHub {
owner = "Chatterino";
repo = "chatterino2";
tag = "v${finalAttrs.version}";
hash = "sha256-eozT3Lfra4i+q3pCxH0Z1v/3Y/FB5yJc/88tA90hTzI=";
fetchSubmodules = true;
leaveDotGit = true;
postFetch = ''
git -C $out rev-parse --short HEAD > $out/GIT_HASH
find "$out" -name .git -print0 | xargs -0 rm -rf
'';
};
passthru = {
buildChatterino = args: callPackage ./common.nix args;
updateScript = gitUpdater {
rev-prefix = "v";
ignoredVersions = "beta";
};
};
meta = {
description = "Chat client for Twitch chat";
mainProgram = "chatterino";
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/Chatterino/chatterino2";
changelog = "https://github.com/Chatterino/chatterino2/blob/${finalAttrs.src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [
supa
marie
];
};
}
)