nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchurl, datefmt, testers }:
2
3stdenv.mkDerivation rec {
4 pname = "datefmt";
5 version = "0.2.2";
6
7 src = fetchurl {
8 url = "https://cdn.jb55.com/tarballs/datefmt/datefmt-${version}.tar.gz";
9 sha256 = "sha256-HgW/vOGVEmAbm8k3oIwIa+cogq7qmX7MfTmHqxv9lhY=";
10 };
11
12 makeFlags = [ "PREFIX=$(out)" ];
13
14 passthru.tests.version = testers.testVersion { package = datefmt; };
15
16 meta = with lib; {
17 homepage = "https://jb55.com/datefmt";
18 description = "A tool that formats timestamps in text streams";
19 platforms = platforms.all;
20 license = licenses.gpl3Plus;
21 maintainers = with maintainers; [ jb55 ];
22 mainProgram = "datefmt";
23 };
24}