depot/third_party/nixpkgs/pkgs/applications/science/biology/minimap2/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

33 lines
835 B
Nix

{ lib, stdenv, fetchFromGitHub, zlib }:
stdenv.mkDerivation rec {
pname = "minimap2";
version = "2.28";
src = fetchFromGitHub {
repo = pname;
owner = "lh3";
rev = "v${version}";
sha256 = "sha256-cBl2BKgPCP/xHZW6fTH51cY9/lV/1HVLsN7a1R1Blv4=";
};
buildInputs = [ zlib ];
makeFlags = lib.optionals stdenv.hostPlatform.isAarch64 [ "arm_neon=1" "aarch64=1" ];
installPhase = ''
mkdir -p $out/bin
cp minimap2 $out/bin
mkdir -p $out/share/man/man1
cp minimap2.1 $out/share/man/man1
'';
meta = with lib; {
description = "Versatile pairwise aligner for genomic and spliced nucleotide sequences";
mainProgram = "minimap2";
homepage = "https://lh3.github.io/minimap2";
license = licenses.mit;
platforms = platforms.all;
maintainers = [ maintainers.arcadio ];
};
}