blob: fc6cfbb158c3396bf739fe21a9eafab77d090907 (
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
30
31
32
33
34
35
36
37
38
|
{stdenv, fetchFromGitHub, python27, htslib, zlib, makeWrapper}:
let python = python27.withPackages (ps: with ps; [ cython ]);
in stdenv.mkDerivation rec {
pname = "platypus-unstable";
version = "2018-07-22";
src = fetchFromGitHub {
owner = "andyrimmer";
repo = "Platypus";
rev = "3e72641c69800da0cd4906b090298e654d316ee1";
sha256 = "0nah6r54b8xm778gqyb8b7rsd76z8ji4g73sm6rvpw5s96iib1vw";
};
buildInputs = [ htslib python zlib makeWrapper ];
buildPhase = ''
patchShebangs .
make
'';
installPhase = ''
mkdir -p $out/libexec/platypus
cp -r ./* $out/libexec/platypus
mkdir -p $out/bin
makeWrapper ${python}/bin/python $out/bin/platypus --add-flags "$out/libexec/platypus/bin/Platypus.py"
'';
meta = with stdenv.lib; {
description = "The Platypus variant caller";
license = licenses.gpl3;
homepage = https://github.com/andyrimmer/Platypus;
maintainers = with maintainers; [ jbedo ];
platforms = platforms.x86_64;
};
}
|