2021-01-15 22:18:51 +00:00
|
|
|
{lib, stdenv, fetchFromGitHub, zlib, python, bzip2, lzma}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bedtools";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "2.30.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "arq5x";
|
|
|
|
repo = "bedtools2";
|
|
|
|
rev = "v${version}";
|
2021-02-05 17:12:51 +00:00
|
|
|
sha256 = "sha256-NqKldF7ePJn3pT+AkESIQghBKSFFOEBBsTaKEbU+oaQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ zlib python bzip2 lzma ];
|
|
|
|
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";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "A powerful toolset for genome arithmetic";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
homepage = "https://bedtools.readthedocs.io/en/latest/";
|
|
|
|
maintainers = with maintainers; [ jbedo ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|