Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 44 lines 885 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 pkg-config, 6 bzip2, 7 openssl, 8 zstd, 9}: 10 11rustPlatform.buildRustPackage rec { 12 pname = "rtz"; 13 version = "0.7.1"; 14 15 src = fetchFromGitHub { 16 owner = "twitchax"; 17 repo = "rtz"; 18 rev = "v${version}"; 19 hash = "sha256-V7N9NFIc/WWxLaahkjdS47Qj8sc3HRdKSkrBqi1ngA8="; 20 }; 21 22 cargoHash = "sha256-Lm81Qnu3ZQw43fCcQOR63EV1aYXuPyR9Gy+F6BCiwUw="; 23 24 nativeBuildInputs = [ 25 pkg-config 26 ]; 27 28 buildInputs = [ 29 bzip2 30 openssl 31 zstd 32 ]; 33 34 buildFeatures = [ "web" ]; 35 36 meta = with lib; { 37 description = "Tool to easily work with timezone lookups via a binary, a library, or a server"; 38 homepage = "https://github.com/twitchax/rtz"; 39 changelog = "https://github.com/twitchax/rtz/releases/tag/${src.rev}"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ figsoda ]; 42 mainProgram = "rtz"; 43 }; 44}