mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
ea5dfeab93
I'm not going anywhere, I'm focusing my energy on other issues, and getting pinged as a maintainer for packages is a bit distracting (also I'm not using most of these packages anyways!)
36 lines
1.0 KiB
Nix
36 lines
1.0 KiB
Nix
{ lib, fetchFromGitHub, buildPythonApplication, python-dateutil }:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "pdd";
|
|
version = "1.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jarun";
|
|
repo = "pdd";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-Z+jUFu4VvrgWUtkXMkjspcRJ/JG81X9gc2tnDoCdrsk=";
|
|
};
|
|
|
|
format = "other";
|
|
|
|
propagatedBuildInputs = [ python-dateutil ];
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/jarun/pdd";
|
|
description = "Tiny date, time diff calculator";
|
|
longDescription = ''
|
|
There are times you want to check how old you are (in years, months, days)
|
|
or how long you need to wait for the next flash sale or the number of days
|
|
left of your notice period in your current job. pdd (Python3 Date Diff) is
|
|
a small cmdline utility to calculate date and time difference. If no
|
|
program arguments are specified it shows the current date, time and
|
|
timezone.
|
|
'';
|
|
maintainers = [ ];
|
|
license = licenses.gpl3;
|
|
mainProgram = "pdd";
|
|
};
|
|
}
|