1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00
nixpkgs/pkgs/tools/misc/pdd/default.nix

35 lines
1 KiB
Nix
Raw Normal View History

2018-04-03 15:56:33 +01:00
{ stdenv, fetchFromGitHub, buildPythonApplication, dateutil }:
buildPythonApplication rec {
pname = "pdd";
version = "1.2";
2018-04-03 15:56:33 +01:00
src = fetchFromGitHub {
owner = "jarun";
repo = "pdd";
rev = "v${version}";
sha256 = "09nyzzch4jlsjfx8axqyxh9d1sw8x4g3vg5fbxz7m16994fzz75i";
2018-04-03 15:56:33 +01:00
};
format = "other";
propagatedBuildInputs = [ dateutil ];
installFlags = [ "PREFIX=$(out)" ];
meta = with stdenv.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 = [ maintainers.infinisil ];
license = licenses.gpl3;
};
}