depot/third_party/nixpkgs/pkgs/tools/misc/datefmt/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

24 lines
697 B
Nix

{ lib, stdenv, fetchurl, testers }:
stdenv.mkDerivation (finalAttrs: {
pname = "datefmt";
version = "0.2.2";
src = fetchurl {
url = "https://cdn.jb55.com/tarballs/datefmt/datefmt-${finalAttrs.version}.tar.gz";
sha256 = "sha256-HgW/vOGVEmAbm8k3oIwIa+cogq7qmX7MfTmHqxv9lhY=";
};
makeFlags = [ "PREFIX=$(out)" ];
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 ];
mainProgram = "datefmt";
};
})