2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoPackage, m4 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2021-08-22 07:53:02 +00:00
|
|
|
pname = "localtime";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "unstable-2017-11-07";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Stebalien";
|
|
|
|
repo = "localtime";
|
|
|
|
rev = "2e7b4317c723406bd75b2a1d640219ab9f8090ce";
|
|
|
|
sha256 = "04fyna8p7q7skzx9fzmncd6gx7x5pwa9jh8a84hpljlvj0kldfs8";
|
|
|
|
};
|
|
|
|
|
|
|
|
goPackagePath = "github.com/Stebalien/localtime";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ m4 ];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}"
|
2020-05-15 21:57:56 +00:00
|
|
|
"BINDIR=${placeholder "out"}/bin"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
cd go/src/${goPackagePath}
|
|
|
|
make $makeFlags
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make install $makeFlags
|
|
|
|
'';
|
|
|
|
|
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-09-18 10:52:07 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|