2017-03-07 05:54:31 +01:00
|
|
|
{stdenv, fetchFromGitHub, zlib, python}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "bedtools-${version}";
|
2018-01-22 13:09:44 +01:00
|
|
|
version = "2.27.1";
|
2017-03-07 05:54:31 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "arq5x";
|
|
|
|
repo = "bedtools2";
|
|
|
|
rev = "v${version}";
|
2018-01-22 13:09:44 +01:00
|
|
|
sha256 = "1pk68y052rm2m24yfmy82ms8p6kd6xcqxxgi7n0a1sbh89wllm6s";
|
2017-03-07 05:54:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ zlib python ];
|
2017-03-22 02:00:24 +01:00
|
|
|
cc = if stdenv.cc.isClang then "clang++" else "g++";
|
|
|
|
buildPhase = "make prefix=$out SHELL=${stdenv.shell} CXX=${cc} -j $NIX_BUILD_CORES";
|
|
|
|
installPhase = "make prefix=$out SHELL=${stdenv.shell} CXX=${cc} install";
|
2017-03-07 05:54:31 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A powerful toolset for genome arithmetic.";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
homepage = https://bedtools.readthedocs.io/en/latest/;
|
|
|
|
maintainers = with maintainers; [ jbedo ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|