2018-05-14 22:26:07 +02:00
|
|
|
{ stdenv, fetchFromGitHub, zlib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "minimap2";
|
2019-01-28 08:39:15 +01:00
|
|
|
version = "2.15";
|
2018-05-14 22:26:07 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = pname;
|
|
|
|
owner = "lh3";
|
|
|
|
rev = "v${version}";
|
2019-01-28 08:39:15 +01:00
|
|
|
sha256 = "0dy3m2wjmi3whjnmkj3maa1aadz525h7736wm8vvdcwq71ijqb7v";
|
2018-05-14 22:26:07 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp minimap2 $out/bin
|
|
|
|
mkdir -p $out/share/man/man1
|
|
|
|
cp minimap2.1 $out/share/man/man1
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A versatile pairwise aligner for genomic and spliced nucleotide sequences";
|
|
|
|
homepage = https://lh3.github.io/minimap2;
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.arcadio ];
|
|
|
|
};
|
|
|
|
}
|