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