blob: b73fdb9cb54ba5668650c1e5ad66c32f1410fbd9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, pkg-config
, openssl
, CoreServices
, Security
, SystemConfiguration
}:
rustPlatform.buildRustPackage rec {
pname = "twitch-tui";
version = "2.6.2";
src = fetchFromGitHub {
owner = "Xithrius";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-q7Z7a/Mfi6djUGK0xvhD0WznxQlDyejZtaq9rSlNz8g=";
};
cargoHash = "sha256-utnwDqQe0PScRXUD/mC6/uSX8cjBHLbRsO0GcVntPKk=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
] ++ lib.optionals stdenv.isDarwin [
CoreServices
Security
SystemConfiguration
];
meta = with lib; {
description = "Twitch chat in the terminal";
homepage = "https://github.com/Xithrius/twitch-tui";
changelog = "https://github.com/Xithrius/twitch-tui/releases/tag/v${version}";
license = licenses.mit;
maintainers = [ maintainers.taha ];
mainProgram = "twt";
};
}
|