mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
27b6d3ade0
Diff: https://github.com/twitchax/rtz/compare/v0.4.2...v0.5.3 Changelog: https://github.com/twitchax/rtz/releases/tag/v0.5.3
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, bzip2
|
|
, openssl
|
|
, zstd
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "rtz";
|
|
version = "0.5.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "twitchax";
|
|
repo = "rtz";
|
|
rev = "v${version}";
|
|
hash = "sha256-cc5yGZ4zHB9V//ywvKv9qgKGDpKotzkJKbfwv1rK2tM=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|