depot/third_party/nixpkgs/pkgs/applications/science/biology/bedtools/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

34 lines
953 B
Nix

{lib, stdenv, fetchFromGitHub, zlib, python3, bzip2, xz}:
stdenv.mkDerivation rec {
pname = "bedtools";
version = "2.31.0";
src = fetchFromGitHub {
owner = "arq5x";
repo = "bedtools2";
rev = "v${version}";
sha256 = "sha256-LBD3z0+zGbQJ67oyPRFPgbiMY9EP17vSk1EKz3DrkEc=";
};
strictDeps = true;
nativeBuildInputs = [
python3
];
buildInputs = [ zlib bzip2 xz ];
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 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;
};
}