nixpkgs/pkgs/tools/misc/datefmt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
697 B
Nix
Raw Normal View History

2024-09-17 01:32:55 +00:00
{ lib, stdenv, fetchurl, testers }:
2024-09-17 01:32:55 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "datefmt";
2022-11-17 18:50:33 +00:00
version = "0.2.2";
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=";
};
makeFlags = [ "PREFIX=$(out)" ];
2024-09-17 01:32:55 +00:00
passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
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";
};
2024-09-17 01:32:55 +00:00
})