nixpkgs/pkgs/tools/system/automatic-timezoned/default.nix
2024-03-26 01:40:02 +00:00

29 lines
796 B
Nix

{ lib
, fetchFromGitHub
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "automatic-timezoned";
version = "2.0.10";
src = fetchFromGitHub {
owner = "maxbrunet";
repo = pname;
rev = "v${version}";
sha256 = "sha256-NAnVPTH1pRFVsEPg4NV+TLBjMEFOmmBOP90z88TGZ9s=";
};
cargoHash = "sha256-60CuoGqDSwb5YPeM+ueeU80R7F86eVS2SH2bY91yfu0=";
meta = with lib; {
description = "Automatically update system timezone based on location";
homepage = "https://github.com/maxbrunet/automatic-timezoned";
changelog = "https://github.com/maxbrunet/automatic-timezoned/blob/v${version}/CHANGELOG.md";
license = licenses.gpl3;
maintainers = with maintainers; [ maxbrunet ];
platforms = platforms.linux;
mainProgram = "automatic-timezoned";
};
}