nixpkgs/pkgs/applications/science/biology/bedtools/default.nix

27 lines
836 B
Nix
Raw Normal View History

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 {
name = "bedtools-${version}";
2019-06-17 03:02:18 +01:00
version = "2.28.0";
2017-03-07 04:54:31 +00:00
src = fetchFromGitHub {
owner = "arq5x";
repo = "bedtools2";
rev = "v${version}";
2019-06-17 03:02:18 +01:00
sha256 = "1266bcn5hgbvysfi6nr4cqxlbxcx7vn7ng8kb0v3gz37qh2zxxw9";
2017-03-07 04:54:31 +00:00
};
2019-06-17 03:02:18 +01:00
buildInputs = [ zlib python bzip2 lzma ];
2017-03-22 01:00:24 +00: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 04:54:31 +00: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;
};
}