Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 46 lines 982 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 zlib, 6 python3, 7 bzip2, 8 xz, 9}: 10 11stdenv.mkDerivation rec { 12 pname = "bedtools"; 13 version = "2.31.1"; 14 15 src = fetchFromGitHub { 16 owner = "arq5x"; 17 repo = "bedtools2"; 18 rev = "v${version}"; 19 sha256 = "sha256-rrk+FSv1bGL0D1lrIOsQu2AT7cw2T4lkDiCnzil5fpg="; 20 }; 21 22 strictDeps = true; 23 24 nativeBuildInputs = [ 25 python3 26 ]; 27 28 buildInputs = [ 29 zlib 30 bzip2 31 xz 32 ]; 33 34 cxx = if stdenv.cc.isClang then "clang++" else "g++"; 35 cc = if stdenv.cc.isClang then "clang" else "gcc"; 36 buildPhase = "make prefix=$out SHELL=${stdenv.shell} CXX=${cxx} CC=${cc} -j $NIX_BUILD_CORES"; 37 installPhase = "make prefix=$out SHELL=${stdenv.shell} CXX=${cxx} CC=${cc} install"; 38 39 meta = with lib; { 40 description = "Powerful toolset for genome arithmetic"; 41 license = licenses.gpl2; 42 homepage = "https://bedtools.readthedocs.io/en/latest/"; 43 maintainers = with maintainers; [ jbedo ]; 44 platforms = platforms.unix; 45 }; 46}