2023-07-15 17:15:38 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook, tzdata }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.4.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "dateutils";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2024-09-19 14:19:46 +00:00
|
|
|
url = "https://bitbucket.org/hroptatyr/dateutils/downloads/dateutils-${version}.tar.xz";
|
2024-02-07 01:22:34 +00:00
|
|
|
sha256 = "sha256-uP6gsJcUu63yArmzQ0zOa1nCgueGkmjQwIuFiA/btEY=";
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Bunch of tools that revolve around fiddling with dates and times in the command line";
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|