2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook, tzdata, fetchpatch }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-06-26 10:26:21 +00:00
|
|
|
version = "0.4.10";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "dateutils";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://bitbucket.org/hroptatyr/dateutils/downloads/${pname}-${version}.tar.xz";
|
2022-06-26 10:26:21 +00:00
|
|
|
sha256 = "sha256-PFCOKIm51a7Kt9WdcyWnAIlZMRGhIwpJbasPWtZ3zew=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
# https://github.com/hroptatyr/dateutils/issues/148
|
|
|
|
postPatch = "rm test/dzone.008.ctst";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ tzdata ]; # needed for datezone
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A bunch of tools that revolve around fiddling with dates and times in the command line";
|
|
|
|
homepage = "http://www.fresse.org/dateutils/";
|
|
|
|
license = licenses.bsd3;
|
2021-12-06 16:07:01 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.paperdigits ];
|
|
|
|
};
|
|
|
|
}
|