2024-09-17 01:32:55 +00:00
|
|
|
{ lib, stdenv, fetchurl, testers }:
|
2021-12-06 02:02:29 +00:00
|
|
|
|
2024-09-17 01:32:55 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-12-06 02:02:29 +00:00
|
|
|
pname = "datefmt";
|
2022-11-17 18:50:33 +00:00
|
|
|
version = "0.2.2";
|
2021-12-06 02:02:29 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-09-17 01:32:55 +00:00
|
|
|
url = "https://cdn.jb55.com/tarballs/datefmt/datefmt-${finalAttrs.version}.tar.gz";
|
2022-11-17 18:50:33 +00:00
|
|
|
sha256 = "sha256-HgW/vOGVEmAbm8k3oIwIa+cogq7qmX7MfTmHqxv9lhY=";
|
2021-12-06 02:02:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2024-09-17 01:32:55 +00:00
|
|
|
passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
|
2021-12-06 02:02:29 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://jb55.com/datefmt";
|
|
|
|
description = "Tool that formats timestamps in text streams";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ jb55 ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "datefmt";
|
2021-12-06 02:02:29 +00:00
|
|
|
};
|
2024-09-17 01:32:55 +00:00
|
|
|
})
|