~andir/nixpkgs-dev

l2md: init at unstable-2020-07-31 v1 PROPOSED

Xinglu Chen: 4
 l2md: init at unstable-2020-07-31
 l2md: init at unstable-2020-07-31
 l2md: init at unstable-2020-07-31
 l2md: init at unstable-2020-07-31

 8 files changed, 135 insertions(+), 0 deletions(-)
Xinglu Chen <public@yoctocell.xyz> writes:
Next
LGTM!

Reviewed-by: Matthias Beyer <mail@beyermatthias.de>
Xinglu Chen <public@yoctocell.xyz> writes:
Next
Tested-by: William Casarin <jb55@jb55.com>
PR'd at https://github.com/NixOS/nixpkgs/pull/112247

Cheers,
Will
One small update I made to v4: looks like the license is gpl2Only and
not gpl2
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~andir/nixpkgs-dev/patches/20022/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] l2md: init at unstable-2020-07-31 Export this patch

l2md is a tool for converting public-inbox archives [1] to maildir
messages.

[1] https://80x24.org/public-inbox.git/about/
---
 pkgs/tools/text/l2md/default.nix | 31 +++++++++++++++++++++++++++++++
 pkgs/top-level/all-packages.nix  |  2 ++
 2 files changed, 33 insertions(+)
 create mode 100644 pkgs/tools/text/l2md/default.nix

diff --git a/pkgs/tools/text/l2md/default.nix b/pkgs/tools/text/l2md/default.nix
new file mode 100644
index 00000000000..f8ef47cf5d2
--- /dev/null
+++ b/pkgs/tools/text/l2md/default.nix
@@ -0,0 +1,31 @@
{ lib, stdenv, fetchurl, libgit2, ... }:

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

  src = fetchurl {
    url = "https://git.kernel.org/pub/scm/linux/kernel/git/dborkman/l2md.git/snapshot/l2md-2b9fae141fc2129940e0337732a35a3fc1c33455.tar.gz";
    sha256 = "7oTwKmCmZAOL8Itwvl+3d5oJf1we/4MQMZjsXja4H1k=";
  };

  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.gpl2;
    maintainers = with maintainers; [ yoctocell ];
    platforms = platforms.unix;
  };
}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 0fe077feed0..0920989b05e 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -5553,6 +5553,8 @@ in

  k6 = callPackage ../development/tools/k6 { };

  l2md = callPackage ../tools/text/l2md { };
  
  lab = callPackage ../applications/version-management/git-and-tools/lab { };

  lalezar-fonts = callPackage ../data/fonts/lalezar-fonts { };
-- 
2.29.2

[PATCH v2] l2md: init at unstable-2020-07-31 Export this patch

l2md is a tool for converting public-inbox archives [1] to maildir
messages.

[1] https://80x24.org/public-inbox.git/about/
---
Changes from v1:
- Use `fetchgit` instead of `fetchurl`.

 pkgs/tools/text/l2md/default.nix | 32 ++++++++++++++++++++++++++++++++
 pkgs/top-level/all-packages.nix  |  2 ++
 2 files changed, 34 insertions(+)
 create mode 100644 pkgs/tools/text/l2md/default.nix

diff --git a/pkgs/tools/text/l2md/default.nix b/pkgs/tools/text/l2md/default.nix
new file mode 100644
index 00000000000..d174c075d1a
--- /dev/null
+++ b/pkgs/tools/text/l2md/default.nix
@@ -0,0 +1,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.gpl2;
    maintainers = with maintainers; [ yoctocell ];
    platforms = platforms.unix;
  };
}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 0fe077feed0..0920989b05e 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -5553,6 +5553,8 @@ in

  k6 = callPackage ../development/tools/k6 { };

  l2md = callPackage ../tools/text/l2md { };
  
  lab = callPackage ../applications/version-management/git-and-tools/lab { };

  lalezar-fonts = callPackage ../data/fonts/lalezar-fonts { };
-- 
2.29.2
Xinglu Chen <public@yoctocell.xyz> writes:
LGTM!

Reviewed-by: Matthias Beyer <mail@beyermatthias.de>

[PATCH v3] l2md: init at unstable-2020-07-31 Export this patch

l2md is a tool for converting public-inbox archives [1] to maildir
messages.

[1] https://80x24.org/public-inbox.git/about/
---
Changes from v2:
- Remove redundant `...`.

 pkgs/tools/text/l2md/default.nix | 32 ++++++++++++++++++++++++++++++++
 pkgs/top-level/all-packages.nix  |  2 ++
 2 files changed, 34 insertions(+)
 create mode 100644 pkgs/tools/text/l2md/default.nix

diff --git a/pkgs/tools/text/l2md/default.nix b/pkgs/tools/text/l2md/default.nix
new file mode 100644
index 00000000000..66ebd6e9988
--- /dev/null
+++ b/pkgs/tools/text/l2md/default.nix
@@ -0,0 +1,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.gpl2;
    maintainers = with maintainers; [ yoctocell ];
    platforms = platforms.unix;
  };
}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 0fe077feed0..0920989b05e 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -5553,6 +5553,8 @@ in

  k6 = callPackage ../development/tools/k6 { };

  l2md = callPackage ../tools/text/l2md { };
  
  lab = callPackage ../applications/version-management/git-and-tools/lab { };

  lalezar-fonts = callPackage ../data/fonts/lalezar-fonts { };
-- 
2.29.2
Xinglu Chen <public@yoctocell.xyz> writes:

[PATCH v4] l2md: init at unstable-2020-07-31 Export this patch

l2md is a tool for converting public-inbox archives [1] to maildir
messages.

[1] https://80x24.org/public-inbox.git/about/
---
Changes from v3:
- Remove trailing whitespace.

 pkgs/tools/text/l2md/default.nix | 32 ++++++++++++++++++++++++++++++++
 pkgs/top-level/all-packages.nix  |  2 ++
 2 files changed, 34 insertions(+)
 create mode 100644 pkgs/tools/text/l2md/default.nix

diff --git a/pkgs/tools/text/l2md/default.nix b/pkgs/tools/text/l2md/default.nix
new file mode 100644
index 00000000000..66ebd6e9988
--- /dev/null
+++ b/pkgs/tools/text/l2md/default.nix
@@ -0,0 +1,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.gpl2;
    maintainers = with maintainers; [ yoctocell ];
    platforms = platforms.unix;
  };
}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 0fe077feed0..fe3dd8ca839 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -5553,6 +5553,8 @@ in

  k6 = callPackage ../development/tools/k6 { };

  l2md = callPackage ../tools/text/l2md { };

  lab = callPackage ../applications/version-management/git-and-tools/lab { };

  lalezar-fonts = callPackage ../data/fonts/lalezar-fonts { };
-- 
2.29.2
Tested-by: William Casarin <jb55@jb55.com>
PR'd at https://github.com/NixOS/nixpkgs/pull/112247

Cheers,
Will