Files
Ihar HrachyshkaandWolfgang Walther 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

30 lines
708 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 = {
homepage = "https://jb55.com/datefmt";
description = "Tool that formats timestamps in text streams";
platforms = lib.platforms.all;
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ jb55 ];
mainProgram = "datefmt";
};
})