diff options
author | Justin Bedo <cu@cua0.org> | 2018-07-31 13:11:16 +1000 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2018-08-20 08:58:22 +1000 |
commit | 27960b6acfd00fa67acfaf345da3fb3e4f7fac4e (patch) | |
tree | be6b2122dacf1ce078a72d196fa9271542f1cf3b /pkgs/applications/science/biology | |
parent | 7ae2ba173f3938170778d1a913e415e2ff78c9e6 (diff) | |
download | nixlib-27960b6acfd00fa67acfaf345da3fb3e4f7fac4e.tar nixlib-27960b6acfd00fa67acfaf345da3fb3e4f7fac4e.tar.gz nixlib-27960b6acfd00fa67acfaf345da3fb3e4f7fac4e.tar.bz2 nixlib-27960b6acfd00fa67acfaf345da3fb3e4f7fac4e.tar.lz nixlib-27960b6acfd00fa67acfaf345da3fb3e4f7fac4e.tar.xz nixlib-27960b6acfd00fa67acfaf345da3fb3e4f7fac4e.tar.zst nixlib-27960b6acfd00fa67acfaf345da3fb3e4f7fac4e.zip |
strelka: init 2.9.5
Diffstat (limited to 'pkgs/applications/science/biology')
-rw-r--r-- | pkgs/applications/science/biology/strelka/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/applications/science/biology/strelka/default.nix b/pkgs/applications/science/biology/strelka/default.nix new file mode 100644 index 000000000000..1527f5d3ddad --- /dev/null +++ b/pkgs/applications/science/biology/strelka/default.nix @@ -0,0 +1,37 @@ +{stdenv, fetchFromGitHub, cmake, zlib, python2}: + +stdenv.mkDerivation rec { + name = "strelka-${version}"; + version = "2.9.5"; + + src = fetchFromGitHub { + owner = "Illumina"; + repo = "strelka"; + rev = "v${version}"; + sha256 = "0x4a6nkx1jnyag9svghsdjz1fz6q7qx5pn77wphdfnk81f9yspf8"; + }; + + buildInputs = [ cmake zlib python2 ]; + + 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" ]; + }; + +} |