mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-02 21:54:45 +00:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
47 lines
984 B
Nix
47 lines
984 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 = {
|
|
description = "Powerful toolset for genome arithmetic";
|
|
license = lib.licenses.gpl2;
|
|
homepage = "https://bedtools.readthedocs.io/en/latest/";
|
|
maintainers = with lib.maintainers; [ jbedo ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|