1{ lib, stdenv, fetchurl, autoreconfHook, tzdata }:
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 # https://github.com/hroptatyr/dateutils/issues/148
13 postPatch = "rm test/dzone.008.ctst";
14
15 nativeBuildInputs = [ autoreconfHook ];
16 buildInputs = [ tzdata ]; # needed for datezone
17 enableParallelBuilding = true;
18
19 doCheck = true;
20
21 meta = with lib; {
22 description = "A bunch of tools that revolve around fiddling with dates and times in the command line";
23 homepage = "http://www.fresse.org/dateutils/";
24 license = licenses.bsd3;
25 platforms = platforms.unix;
26 maintainers = [ maintainers.paperdigits ];
27 };
28}