2021-12-19 01:06:50 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, m4
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule {
|
2021-08-22 07:53:02 +00:00
|
|
|
pname = "localtime";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "unstable-2022-02-20";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Stebalien";
|
|
|
|
repo = "localtime";
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "c1e10aa4141ed2bb01986b48e0e942e618993c06";
|
|
|
|
hash = "sha256-bPQ1c2KUTkxx2g7IvLmrKgJKfRHTLlTXLR/QQ0O4CrI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-12JnEU41sp9qRP07p502EYogveE+aNdfmLwlDRbIdxU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
nativeBuildInputs = [ m4 ];
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
|
|
|
make PREFIX="$out"
|
|
|
|
runHook postBuild
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false; # no tests
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
2021-12-19 01:06:50 +00:00
|
|
|
runHook preInstall
|
|
|
|
make PREFIX="$out" install
|
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A daemon for keeping the system timezone up-to-date based on the current location";
|
|
|
|
homepage = "https://github.com/Stebalien/localtime";
|
2021-12-19 01:06:50 +00:00
|
|
|
maintainers = with maintainers; [ lovesegfault ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "localtimed";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|