nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchgit, libgit2 }:
2
3stdenv.mkDerivation rec {
4 pname = "l2md";
5 version = "unstable-2020-07-31";
6
7 src = fetchgit {
8 url = "https://git.kernel.org/pub/scm/linux/kernel/git/dborkman/l2md.git";
9 rev = "2b9fae141fc2129940e0337732a35a3fc1c33455";
10 sha256 = "PNNoD3a+rJwKH6wbOkvVU1IW4+xF7+zQaLFAlyLlYOI=";
11 };
12
13 buildInputs = [ libgit2 ];
14
15 installPhase = ''
16 mkdir -p $out/bin
17 cp l2md $out/bin
18 '';
19
20 meta = with lib; {
21 description = "Convert public-inbox archives to maildir messages";
22 longDescription = ''
23 Quick and dirty hack to import lore.kernel.org list archives via git,
24 to export them in maildir format or through a pipe, and to keep them
25 periodically synced.
26 '';
27 homepage = "https://git.kernel.org/pub/scm/linux/kernel/git/dborkman/l2md.git";
28 license = licenses.gpl2Only;
29 maintainers = with maintainers; [ yoctocell ];
30 platforms = platforms.unix;
31 };
32}