~andir/nixpkgs-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] datefmt: init at 0.2

William Casarin <jb55@jb55.com>
Details
Message ID
<20211206021054.2252306-1-jb55@jb55.com>
DKIM signature
missing
Download raw message
Patch: +24 -0
datefmt is a simple C program that formats unix timestamps in text streams

Signed-off-by: William Casarin <jb55@jb55.com>
---

Hey guys,

It seems this place is kinda dead but I figured I would share this util
I wrote and have been using a lot. It's a small C program that formats
unix timestamps over stdin.

I'm gonna go ahead and submit this to nixpkgs myself, but definitely
check it out if you see this!

 pkgs/tools/misc/datefmt/default.nix | 22 ++++++++++++++++++++++
 pkgs/top-level/all-packages.nix     |  2 ++
 2 files changed, 24 insertions(+)
 create mode 100644 pkgs/tools/misc/datefmt/default.nix

diff --git a/pkgs/tools/misc/datefmt/default.nix b/pkgs/tools/misc/datefmt/default.nix
new file mode 100644
index 00000000000..405be1a4278
--- /dev/null
+++ b/pkgs/tools/misc/datefmt/default.nix
@@ -0,0 +1,22 @@
{ lib, stdenv, fetchurl }:

stdenv.mkDerivation rec {
  pname = "datefmt";
  version = "0.2";

  src = fetchurl {
    url = "http://cdn.jb55.com/tarballs/${pname}/${pname}-${version}.tar.gz";
    sha256 = "3dab9cf8e58915d0880cb9f69856be041941f21009d0572644064b200606d65f";
  };

  makeFlags = [ "PREFIX=$(out)" ];

  meta = {
    homepage = "https://jb55.com/datefmt";
    description = "format timestamps in text streams";
    platforms = lib.platforms.all;
    license = lib.licenses.gpl3;
    maintainers = [ lib.maintainers.jb55 ];
  };
}

diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 297236b8f8e..878c581ff92 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -2678,6 +2678,8 @@ with pkgs;

  howard-hinnant-date = callPackage ../development/libraries/howard-hinnant-date { };

  datefmt = callPackage ../tools/misc/datefmt { };

  datefudge = callPackage ../tools/system/datefudge { };

  dateutils = callPackage ../tools/misc/dateutils { };
-- 
2.32.0
Details
Message ID
<20211206070426.jn6mgnols75xkm6i@hoshi>
In-Reply-To
<20211206021054.2252306-1-jb55@jb55.com> (view parent)
DKIM signature
missing
Download raw message
Reviewed-by: Matthias Beyer <mail@beyermatthias.de>
Reply to thread Export thread (mbox)