Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
885 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
bzip2,
openssl,
zstd,
}:
rustPlatform.buildRustPackage rec {
pname = "rtz";
version = "0.7.1";
src = fetchFromGitHub {
owner = "twitchax";
repo = "rtz";
rev = "v${version}";
hash = "sha256-V7N9NFIc/WWxLaahkjdS47Qj8sc3HRdKSkrBqi1ngA8=";
};
cargoHash = "sha256-Lm81Qnu3ZQw43fCcQOR63EV1aYXuPyR9Gy+F6BCiwUw=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
bzip2
openssl
zstd
];
buildFeatures = [ "web" ];
meta = with lib; {
description = "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 ];
mainProgram = "rtz";
};
}