2019-06-17 03:02:18 +01:00
|
|
|
{stdenv, fetchFromGitHub, zlib, python, bzip2, lzma}:
|
2017-03-07 04:54:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "bedtools";
|
2019-12-17 23:36:51 +00:00
|
|
|
version = "2.29.2";
|
2017-03-07 04:54:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "arq5x";
|
|
|
|
repo = "bedtools2";
|
|
|
|
rev = "v${version}";
|
2019-12-17 23:36:51 +00:00
|
|
|
sha256 = "015qq3pwrwgnyxyi959niijjlswl231b3wxlsm3l8msv6fdhmkz8";
|
2017-03-07 04:54:31 +00:00
|
|
|
};
|
|
|
|
|
2019-06-17 03:02:18 +01:00
|
|
|
buildInputs = [ zlib python bzip2 lzma ];
|
2019-12-10 22:27:57 +00:00
|
|
|
cxx = if stdenv.cc.isClang then "clang++" else "g++";
|
|
|
|
cc = if stdenv.cc.isClang then "clang" else "gcc";
|
|
|
|
buildPhase = "make prefix=$out SHELL=${stdenv.shell} CXX=${cxx} CC=${cc} -j $NIX_BUILD_CORES";
|
|
|
|
installPhase = "make prefix=$out SHELL=${stdenv.shell} CXX=${cxx} CC=${cc} install";
|
2017-03-07 04:54:31 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A powerful toolset for genome arithmetic.";
|
|
|
|
license = licenses.gpl2;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://bedtools.readthedocs.io/en/latest/";
|
2017-03-07 04:54:31 +00:00
|
|
|
maintainers = with maintainers; [ jbedo ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|