1 { lib, stdenv, fetchFromGitHub, cmake, zlib, python2 }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "1711xkcw8rpw9xv3bbm7v1aryjz4r341rkq5255192dg38sgq7w2";
14 nativeBuildInputs = [ cmake ];
15 buildInputs = [ zlib python2 ];
17 sed -i 's|/usr/bin/env python2|${python2.interpreter}|' $out/lib/python/makeRunScript.py
18 sed -i 's|/usr/bin/env python|${python2.interpreter}|' $out/lib/python/pyflow/pyflow.py
19 sed -i 's|/bin/bash|${stdenv.shell}|' $out/lib/python/pyflow/pyflowTaskWrapper.py
21 doInstallCheck = true;
22 installCheckPhase = ''
23 rm $out/lib/python/**/*.pyc
24 PYTHONPATH=$out/lib/python:$PYTHONPATH python -c 'import makeRunScript'
25 PYTHONPATH=$out/lib/python/pyflow:$PYTHONPATH python -c 'import pyflowTaskWrapper; import pyflow'
29 description = "Structural variant caller";
30 license = licenses.gpl3;
31 homepage = "https://github.com/Illumina/manta";
32 maintainers = with maintainers; [ jbedo ];
33 platforms = platforms.x86_64;