mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
fb4a93a913
fetchzip is more efficient, because it doesn't do a full git clone, so it should be preferred where possible. Where hashes have not been changed, I have verified that they don't need to be. Where hashes have changed, in all cases this is because of .gitattributes files that exclude certain files from the tarball, and in these cases I have verified that the packages still build. sbsigntool still uses fetchgit because it has a submodule, and ell and iwd still use fetchgit because git.kernel.org does not provide snapshot links for them. Apparently this is intentional.
32 lines
961 B
Nix
32 lines
961 B
Nix
{ lib, stdenv, fetchzip, libgit2 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
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 = 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;
|
|
};
|
|
}
|