blob: c4802b803422d556b25b263b4e58595eaab09fe6 (
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
46
47
48
49
50
51
52
53
54
55
56
|
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, bzip2
, openssl
, zstd
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "rtz";
version = "0.4.2";
src = fetchFromGitHub {
owner = "twitchax";
repo = "rtz";
rev = "v${version}";
hash = "sha256-hxRZhUSmocHQJqrWVjT6af5zTM6KKCv4GycWlO1T6qM=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"bincode-2.0.0-rc.3" = "sha256-YCoTnIKqRObeyfTanjptTYeD9U2b2c+d4CJFWIiGckI=";
};
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
bzip2
openssl
zstd
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
buildFeatures = [ "web" ];
env = {
# requires nightly features
RUSTC_BOOTSTRAP = true;
};
meta = with lib; {
description = "A tool to easily work with timezone lookups via a binary, a library, or a server";
homepage = "https://github.com/twitchax/rtz";
changelog = "https://github.com/twitchax/rtz/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}
|