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