about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/text/l2md/default.nix
blob: e443cc42a2ecd0018f282e97ff60c62621f90d23 (plain) (blame)
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
{ lib, stdenv, fetchgit, libgit2 }:

stdenv.mkDerivation rec {
  pname = "l2md";
  version = "unstable-2020-07-31";

  src = fetchgit {
    url = "https://git.kernel.org/pub/scm/linux/kernel/git/dborkman/l2md.git";
    rev = "2b9fae141fc2129940e0337732a35a3fc1c33455";
    sha256 = "PNNoD3a+rJwKH6wbOkvVU1IW4+xF7+zQaLFAlyLlYOI=";
  };

  buildInputs = [ libgit2 ];

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

  meta = with lib; {
    description = "Convert public-inbox archives to maildir messages";
    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 = licenses.gpl2Only;
    maintainers = with maintainers; [ yoctocell ];
    platforms = platforms.unix;
  };
}