nixpkgs/pkgs/applications/misc/tzupdate/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

25 lines
596 B
Nix

{ lib, python3, fetchPypi }:
let
inherit (python3.pkgs) buildPythonApplication requests;
in
buildPythonApplication rec {
pname = "tzupdate";
version = "2.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "5b55795c390e4ccc90e649c8cc387447daaf30a21d68f7196b49824cbcba8adc";
};
propagatedBuildInputs = [ requests ];
meta = with lib; {
description = "Update timezone information based on geoip";
mainProgram = "tzupdate";
homepage = "https://github.com/cdown/tzupdate";
maintainers = [ maintainers.michaelpj ];
license = licenses.unlicense;
};
}