mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
ff323ed355
via: `find pkgs/ -type f -exec sed -i 's/vendorSha256 = "sha256/vendorHash = "sha256/' {};`
44 lines
958 B
Nix
44 lines
958 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
, m4
|
|
}:
|
|
|
|
buildGoModule {
|
|
pname = "localtime";
|
|
version = "unstable-2022-02-20";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Stebalien";
|
|
repo = "localtime";
|
|
rev = "c1e10aa4141ed2bb01986b48e0e942e618993c06";
|
|
hash = "sha256-bPQ1c2KUTkxx2g7IvLmrKgJKfRHTLlTXLR/QQ0O4CrI=";
|
|
};
|
|
|
|
vendorHash = "sha256-12JnEU41sp9qRP07p502EYogveE+aNdfmLwlDRbIdxU=";
|
|
|
|
nativeBuildInputs = [ m4 ];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
make PREFIX="$out"
|
|
runHook postBuild
|
|
'';
|
|
|
|
doCheck = false; # no tests
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
make PREFIX="$out" install
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A daemon for keeping the system timezone up-to-date based on the current location";
|
|
homepage = "https://github.com/Stebalien/localtime";
|
|
maintainers = with maintainers; [ lovesegfault ];
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl3;
|
|
};
|
|
}
|