2018-07-31 03:11:16 +00:00
|
|
|
{stdenv, fetchFromGitHub, cmake, zlib, python2}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "strelka";
|
2019-06-17 06:09:25 +00:00
|
|
|
version = "2.9.10";
|
2018-07-31 03:11:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Illumina";
|
|
|
|
repo = "strelka";
|
|
|
|
rev = "v${version}";
|
2019-06-17 06:09:25 +00:00
|
|
|
sha256 = "1nykbmim1124xh22nrhrsn8xgjb3s2y7akrdapn9sl1gdych4ppf";
|
2018-07-31 03:11:16 +00:00
|
|
|
};
|
|
|
|
|
2019-06-17 06:09:25 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ zlib python2 ];
|
2018-07-31 03:11:16 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i 's|/usr/bin/env python|${python2}/bin/python|' src/python/lib/makeRunScript.py
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
pushd $out/lib/python/pyflow
|
|
|
|
sed -i 's|/bin/bash|${stdenv.shell}|' pyflowTaskWrapper.py
|
|
|
|
rm pyflowTaskWrapper.pyc
|
|
|
|
echo "import pyflowTaskWrapper" | python2
|
|
|
|
popd
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Germline and small variant caller";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
homepage = https://github.com/Illumina/strelka;
|
|
|
|
maintainers = with maintainers; [ jbedo ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2019-10-07 15:20:23 +00:00
|
|
|
broken = true;
|
2018-07-31 03:11:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|