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

35 lines
953 B
Nix
Raw Normal View History

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 {
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
meta = with lib; {
description = "A powerful toolset for genome arithmetic";
2017-03-07 04:54:31 +00:00
license = licenses.gpl2;
homepage = "https://bedtools.readthedocs.io/en/latest/";
2017-03-07 04:54:31 +00:00
maintainers = with maintainers; [ jbedo ];
platforms = platforms.unix;
};
}