about summary refs log tree commit diff
path: root/pkgs/applications/misc/tzupdate/default.nix
blob: c991a71e9c0ae02f7cb969b5e19fa094b3ff09a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  lib,
  rustPlatform,
  fetchFromGitHub,
}:

rustPlatform.buildRustPackage rec {
  pname = "tzupdate";
  version = "3.1.0";

  src = fetchFromGitHub {
    owner = "cdown";
    repo = "tzupdate";
    rev = version;
    hash = "sha256-eod4yFzX7pATNQmG7jU+r9mnC9nprJ55ufMXpKjw/YI=";
  };

  cargoHash = "sha256-5+lp5xlwJxFDqzVxptJPX7z0iLoMkgdwHxvRVIXHF7Y=";

  meta = with lib; {
    description = "Set the system timezone based on IP geolocation";
    homepage = "https://github.com/cdown/tzupdate";
    license = licenses.mit;
    maintainers = with maintainers; [ camillemndn ];
    platforms = platforms.linux;
    mainProgram = "tzupdate";
  };
}