blob: fa8f3edf5ad6e126446d5b31e20599566dd88863 (
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
|
{ stdenv
, lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, Foundation
, dbusSupport ? stdenv.hostPlatform.isLinux, dbus
# rustls will be used for TLS if useOpenSSL=false
, useOpenSSL ? stdenv.hostPlatform.isLinux, openssl
, notificationSupport ? stdenv.hostPlatform.isLinux
}:
rustPlatform.buildRustPackage rec {
pname = "tiny";
version = "0.12.0";
src = fetchFromGitHub {
owner = "osa1";
repo = "tiny";
rev = "v${version}";
hash = "sha256-VlKhOHNggT+FbMvE/N2JQOJf0uB1N69HHdP09u89qSk=";
};
cargoHash = "sha256-AhQCfLCoJU7o8s+XL3hDOPmZi9QjOxXSA9uglA1KSuY=";
nativeBuildInputs = lib.optional stdenv.hostPlatform.isLinux pkg-config;
buildInputs = lib.optionals dbusSupport [ dbus ]
++ lib.optionals useOpenSSL [ openssl ]
++ lib.optional stdenv.hostPlatform.isDarwin Foundation;
buildFeatures = lib.optional notificationSupport "desktop-notifications";
meta = with lib; {
description = "Console IRC client";
homepage = "https://github.com/osa1/tiny";
changelog = "https://github.com/osa1/tiny/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ Br1ght0ne vyp ];
mainProgram = "tiny";
};
}
|