Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
982 B
Nix
47 lines
982 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
zlib,
|
|
python3,
|
|
bzip2,
|
|
xz,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bedtools";
|
|
version = "2.31.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "arq5x";
|
|
repo = "bedtools2";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-rrk+FSv1bGL0D1lrIOsQu2AT7cw2T4lkDiCnzil5fpg=";
|
|
};
|
|
|
|
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 = "Powerful toolset for genome arithmetic";
|
|
license = licenses.gpl2;
|
|
homepage = "https://bedtools.readthedocs.io/en/latest/";
|
|
maintainers = with maintainers; [ jbedo ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|