2022-04-20 14:40:48 +00:00
|
|
|
{ lib, stdenv, fetchurl, datefmt, testers }:
|
2021-12-06 02:02:29 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "datefmt";
|
|
|
|
version = "0.2.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://cdn.jb55.com/tarballs/datefmt/datefmt-${version}.tar.gz";
|
|
|
|
sha256 = "5d5e765380afe39eb39d48f752aed748b57dfd843a4947b2a6d18ab9b5e68092";
|
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2022-04-20 14:40:48 +00:00
|
|
|
passthru.tests.version = testers.testVersion { package = datefmt; };
|
2021-12-06 02:02:29 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://jb55.com/datefmt";
|
|
|
|
description = "A tool that formats timestamps in text streams";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ jb55 ];
|
|
|
|
};
|
|
|
|
}
|