d6cfb865ad
GitOrigin-RevId: 5265d49a36bb5a18c85e6817b338b456acc3b8cc
27 lines
901 B
Nix
27 lines
901 B
Nix
{stdenv, fetchFromGitHub, zlib, python, bzip2, lzma}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bedtools";
|
|
version = "2.29.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "arq5x";
|
|
repo = "bedtools2";
|
|
rev = "v${version}";
|
|
sha256 = "015qq3pwrwgnyxyi959niijjlswl231b3wxlsm3l8msv6fdhmkz8";
|
|
};
|
|
|
|
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";
|
|
|
|
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;
|
|
};
|
|
}
|