Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 autoreconfHook, 6 tzdata, 7}: 8 9stdenv.mkDerivation rec { 10 version = "0.4.11"; 11 pname = "dateutils"; 12 13 src = fetchurl { 14 url = "https://bitbucket.org/hroptatyr/dateutils/downloads/dateutils-${version}.tar.xz"; 15 sha256 = "sha256-uP6gsJcUu63yArmzQ0zOa1nCgueGkmjQwIuFiA/btEY="; 16 }; 17 18 # https://github.com/hroptatyr/dateutils/issues/148 19 postPatch = "rm test/dzone.008.ctst"; 20 21 nativeBuildInputs = [ autoreconfHook ]; 22 buildInputs = [ tzdata ]; # needed for datezone 23 enableParallelBuilding = true; 24 25 doCheck = true; 26 27 meta = with lib; { 28 description = "Bunch of tools that revolve around fiddling with dates and times in the command line"; 29 homepage = "http://www.fresse.org/dateutils/"; 30 license = licenses.bsd3; 31 platforms = platforms.unix; 32 maintainers = [ maintainers.paperdigits ]; 33 }; 34}