571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
45 lines
988 B
Nix
45 lines
988 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 = "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;
|
|
mainProgram = "localtimed";
|
|
};
|
|
}
|