2018-07-20 17:44:44 -07:00
|
|
|
{ stdenv, fetchFromGitHub, zlib, bzip2, lzma }:
|
2016-12-16 21:36:53 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "freebayes";
|
2019-11-04 12:57:31 -08:00
|
|
|
version = "1.3.1";
|
2016-12-16 21:36:53 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
name = "freebayes-${version}-src";
|
|
|
|
owner = "ekg";
|
|
|
|
repo = "freebayes";
|
2019-11-04 12:57:31 -08:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "035nriknjqq8gvil81vvsmvqwi35v80q8h1cw24vd1gdyn1x7bys";
|
2016-12-16 21:36:53 -08:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2017-09-27 15:52:58 -07:00
|
|
|
buildInputs = [ zlib bzip2 lzma ];
|
2016-12-16 21:36:53 -08:00
|
|
|
|
2017-09-27 15:52:58 -07:00
|
|
|
installPhase = ''
|
|
|
|
install -vD bin/freebayes bin/bamleftalign scripts/* -t $out/bin
|
|
|
|
'';
|
2016-12-16 21:36:53 -08:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Bayesian haplotype-based polymorphism discovery and genotyping";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = https://github.com/ekg/freebayes;
|
|
|
|
maintainers = with maintainers; [ jdagilliland ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|