mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
33 lines
987 B
Nix
33 lines
987 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";
|
|
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 = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ yoctocell ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|