2023-07-23 03:10:23 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
2024-08-26 12:45:30 +00:00
|
|
|
fetchurl,
|
2023-07-25 21:48:36 +00:00
|
|
|
pkg-config,
|
|
|
|
bzip2,
|
|
|
|
openssl,
|
|
|
|
zstd,
|
2023-07-23 03:10:23 +00:00
|
|
|
stdenv,
|
|
|
|
darwin,
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "rtz";
|
2024-09-19 16:18:51 +00:00
|
|
|
version = "0.7.1";
|
2023-07-23 03:10:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "twitchax";
|
|
|
|
repo = "rtz";
|
|
|
|
rev = "v${version}";
|
2024-09-19 16:18:51 +00:00
|
|
|
hash = "sha256-V7N9NFIc/WWxLaahkjdS47Qj8sc3HRdKSkrBqi1ngA8=";
|
2023-07-23 03:10:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"bincode-2.0.0-rc.3" = "sha256-YCoTnIKqRObeyfTanjptTYeD9U2b2c+d4CJFWIiGckI=";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-07-25 21:48:36 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[
|
|
|
|
bzip2
|
|
|
|
openssl
|
|
|
|
zstd
|
|
|
|
]
|
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2023-07-23 03:10:23 +00:00
|
|
|
darwin.apple_sdk.frameworks.Security
|
2024-08-31 10:02:20 +00:00
|
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
2023-07-23 03:10:23 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildFeatures = [ "web" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-07-25 21:48:36 +00:00
|
|
|
description = "Tool to easily work with timezone lookups via a binary, a library, or a server";
|
2023-07-23 03:10:23 +00:00
|
|
|
homepage = "https://github.com/twitchax/rtz";
|
2023-07-25 21:48:36 +00:00
|
|
|
changelog = "https://github.com/twitchax/rtz/releases/tag/${src.rev}";
|
2023-07-23 03:10:23 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "rtz";
|
2023-07-23 03:10:23 +00:00
|
|
|
};
|
|
|
|
}
|