summary refs log tree commit diff
path: root/pkgs/applications/science/biology/freebayes/default.nix
blob: 7d0a36e755f620f4be66ce161c24cecefea8877d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchFromGitHub, zlib, bzip2, lzma }:

stdenv.mkDerivation rec {
  pname = "freebayes";
  version = "1.3.1";

  src = fetchFromGitHub {
    name = "freebayes-${version}-src";
    owner  = "ekg";
    repo   = "freebayes";
    rev    = "v${version}";
    sha256 = "035nriknjqq8gvil81vvsmvqwi35v80q8h1cw24vd1gdyn1x7bys";
    fetchSubmodules = true;
  };

  buildInputs = [ zlib bzip2 lzma ];

  installPhase = ''
    install -vD bin/freebayes bin/bamleftalign scripts/* -t $out/bin
  '';

  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" ];
  };
}