1 { lib, stdenv, fetchFromGitHub, zlib }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-cBl2BKgPCP/xHZW6fTH51cY9/lV/1HVLsN7a1R1Blv4=";
14 buildInputs = [ zlib ];
16 makeFlags = lib.optionals stdenv.hostPlatform.isAarch64 [ "arm_neon=1" "aarch64=1" ];
21 mkdir -p $out/share/man/man1
22 cp minimap2.1 $out/share/man/man1
26 description = "Versatile pairwise aligner for genomic and spliced nucleotide sequences";
27 mainProgram = "minimap2";
28 homepage = "https://lh3.github.io/minimap2";
29 license = licenses.mit;
30 platforms = platforms.all;
31 maintainers = [ maintainers.arcadio ];