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

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

24 lines
642 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, datefmt, testers }:
stdenv.mkDerivation rec {
pname = "datefmt";
2022-11-17 18:50:33 +00:00
version = "0.2.2";
src = fetchurl {
2022-11-17 18:50:33 +00:00
url = "https://cdn.jb55.com/tarballs/datefmt/datefmt-${version}.tar.gz";
sha256 = "sha256-HgW/vOGVEmAbm8k3oIwIa+cogq7qmX7MfTmHqxv9lhY=";
};
makeFlags = [ "PREFIX=$(out)" ];
passthru.tests.version = testers.testVersion { package = datefmt; };
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 ];
};
}