2022-04-27 09:35:20 +00:00
|
|
|
{ lib, stdenv, fetchurl, datefmt, testers }:
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "datefmt";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "0.2.2";
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-12-17 10:02:37 +00:00
|
|
|
url = "https://cdn.jb55.com/tarballs/datefmt/datefmt-${version}.tar.gz";
|
|
|
|
sha256 = "sha256-HgW/vOGVEmAbm8k3oIwIa+cogq7qmX7MfTmHqxv9lhY=";
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
passthru.tests.version = testers.testVersion { package = datefmt; };
|
2021-12-19 01:06:50 +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 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "datefmt";
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
}
|