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

28 lines
898 B
Nix
Raw Normal View History

{lib, stdenv, fetchFromGitHub, zlib, python, bzip2, lzma}:
2017-03-06 20:54:31 -08:00
stdenv.mkDerivation rec {
pname = "bedtools";
2021-01-24 18:02:29 -08:00
version = "2.30.0";
2017-03-06 20:54:31 -08:00
src = fetchFromGitHub {
owner = "arq5x";
repo = "bedtools2";
rev = "v${version}";
2021-01-24 18:02:29 -08:00
sha256 = "sha256-NqKldF7ePJn3pT+AkESIQghBKSFFOEBBsTaKEbU+oaQ=";
2017-03-06 20:54:31 -08:00
};
2019-06-16 19:02:18 -07:00
buildInputs = [ zlib python bzip2 lzma ];
2019-12-10 14:27:57 -08: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-06 20:54:31 -08:00
meta = with lib; {
description = "A powerful toolset for genome arithmetic";
2017-03-06 20:54:31 -08:00
license = licenses.gpl2;
homepage = "https://bedtools.readthedocs.io/en/latest/";
2017-03-06 20:54:31 -08:00
maintainers = with maintainers; [ jbedo ];
platforms = platforms.unix;
};
}