summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/l2/l2md/package.nix
blob: 4a1d04f08cfbf4404fa6c63ee77176c08a4b6160 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  lib,
  stdenv,
  fetchzip,
  libgit2,
}:

stdenv.mkDerivation {
  pname = "l2md";
  version = "unstable-2021-10-27";

  src = fetchzip {
    url = "https://git.kernel.org/pub/scm/linux/kernel/git/dborkman/l2md.git/snapshot/l2md-9db252bc1716ebaf0abd3a47a59ea78e4e6253d6.tar.gz";
    sha256 = "sha256-H/leDUwQM55akyXsmTnI2YsnG4i1KQtf4bBt1fizy8E=";
  };

  buildInputs = [ libgit2 ];

  installPhase = ''
    mkdir -p $out/bin
    cp l2md $out/bin
  '';

  meta = {
    description = "Convert public-inbox archives to maildir messages";
    mainProgram = "l2md";
    longDescription = ''
      Quick and dirty hack to import lore.kernel.org list archives via git,
      to export them in maildir format or through a pipe, and to keep them
      periodically synced.
    '';
    homepage = "https://git.kernel.org/pub/scm/linux/kernel/git/dborkman/l2md.git";
    license = lib.licenses.gpl2Only;
    maintainers = with lib.maintainers; [ yoctocell ];
    platforms = lib.platforms.unix;
  };
}