2024-06-24 18:47:55 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "tzupdate";
|
2024-06-24 18:47:55 +00:00
|
|
|
version = "3.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cdown";
|
|
|
|
repo = "tzupdate";
|
2024-10-04 16:56:33 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-06-24 18:47:55 +00:00
|
|
|
hash = "sha256-eod4yFzX7pATNQmG7jU+r9mnC9nprJ55ufMXpKjw/YI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
cargoHash = "sha256-5+lp5xlwJxFDqzVxptJPX7z0iLoMkgdwHxvRVIXHF7Y=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
meta = {
|
2024-06-24 18:47:55 +00:00
|
|
|
description = "Set the system timezone based on IP geolocation";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/cdown/tzupdate";
|
2024-10-04 16:56:33 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
camillemndn
|
|
|
|
doronbehar
|
|
|
|
];
|
|
|
|
platforms = lib.platforms.linux;
|
2024-06-24 18:47:55 +00:00
|
|
|
mainProgram = "tzupdate";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|