1{ lib, stdenv, fetchurl, autoreconfHook, tzdata, fetchpatch }:
2
3stdenv.mkDerivation rec {
4 version = "0.4.10";
5 pname = "dateutils";
6
7 src = fetchurl {
8 url = "https://bitbucket.org/hroptatyr/dateutils/downloads/${pname}-${version}.tar.xz";
9 sha256 = "sha256-PFCOKIm51a7Kt9WdcyWnAIlZMRGhIwpJbasPWtZ3zew=";
10 };
11
12 nativeBuildInputs = [ autoreconfHook ];
13 buildInputs = [ tzdata ]; # needed for datezone
14 enableParallelBuilding = true;
15
16 doCheck = true;
17
18 meta = with lib; {
19 description = "A bunch of tools that revolve around fiddling with dates and times in the command line";
20 homepage = "http://www.fresse.org/dateutils/";
21 license = licenses.bsd3;
22 platforms = platforms.unix;
23 maintainers = [ maintainers.paperdigits ];
24 };
25}