@@ -0,0 +1,30 @@
1+{stdenv, fetchFromGitHub, cmake, boost, gmp, htslib, zlib, lzma, pkg-config}:
2+
3+stdenv.mkDerivation rec {
4+ pname = "octopus";
5+ version = "0.6.3-beta";
6+ name = "${pname}-${version}";
7+
8+ src = fetchFromGitHub {
9+ owner = "luntergroup";
10+ repo = "octopus";
11+ rev = "v${version}";
12+ sha256 = "042fycg8ppld7iajpzq2d8h8wr0nw43zbl57y125sfihryvr373n";
13+ };
14+
15+ nativeBuildInputs = [ cmake pkg-config ];
16+ buildInputs = [ boost gmp htslib zlib lzma ];
17+
18+ postInstall = ''
19+ mkdir $out/bin
20+ mv $out/octopus $out/bin
21+ '';
22+
23+ meta = with stdenv.lib; {
24+ description = "Bayesian haplotype-based mutation calling";
25+ license = licenses.mit;
26+ homepage = "https://github.com/luntergroup/octopus";
27+ maintainers = with maintainers; [ jbedo ];
28+ platforms = platforms.x86_64;
29+ };
30+}