2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchFromGitHub, zlib, bzip2, lzma }:
|
2016-12-17 05:36:53 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "freebayes-${version}";
|
2017-09-01 20:42:52 +01:00
|
|
|
version = "2017-08-23";
|
2016-12-17 05:36:53 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
name = "freebayes-${version}-src";
|
|
|
|
owner = "ekg";
|
|
|
|
repo = "freebayes";
|
2017-09-01 20:42:52 +01:00
|
|
|
rev = "8d2b3a060da473e1f4f89be04edfce5cba63f1d3";
|
|
|
|
sha256 = "0yyrgk2639lz1yvg4jf0ccahnkic31dy77q05pb3i28rjf37v45z";
|
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;
|
|
|
|
homepage = https://github.com/ekg/freebayes;
|
|
|
|
maintainers = with maintainers; [ jdagilliland ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|