2021-03-14 18:12:53 +00:00
|
|
|
{lib, stdenv, fetchFromGitHub, zlib, python3, bzip2, xz}:
|
2017-03-07 04:54:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "bedtools";
|
2021-01-25 02:02:29 +00:00
|
|
|
version = "2.30.0";
|
2017-03-07 04:54:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "arq5x";
|
|
|
|
repo = "bedtools2";
|
|
|
|
rev = "v${version}";
|
2021-01-25 02:02:29 +00:00
|
|
|
sha256 = "sha256-NqKldF7ePJn3pT+AkESIQghBKSFFOEBBsTaKEbU+oaQ=";
|
2017-03-07 04:54:31 +00:00
|
|
|
};
|
|
|
|
|
2021-03-25 09:42:32 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
2021-03-14 18:12:53 +00:00
|
|
|
buildInputs = [ zlib bzip2 xz ];
|
|
|
|
|
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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "A powerful toolset for genome arithmetic";
|
2017-03-07 04:54:31 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|