1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 19:26:02 +00:00
nixpkgs/pkgs/applications/science/biology/bedtools/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

27 lines
826 B
Nix

{stdenv, fetchFromGitHub, zlib, python, bzip2, lzma}:
stdenv.mkDerivation rec {
pname = "bedtools";
version = "2.28.0";
src = fetchFromGitHub {
owner = "arq5x";
repo = "bedtools2";
rev = "v${version}";
sha256 = "1266bcn5hgbvysfi6nr4cqxlbxcx7vn7ng8kb0v3gz37qh2zxxw9";
};
buildInputs = [ zlib python bzip2 lzma ];
cc = if stdenv.cc.isClang then "clang++" else "g++";
buildPhase = "make prefix=$out SHELL=${stdenv.shell} CXX=${cc} -j $NIX_BUILD_CORES";
installPhase = "make prefix=$out SHELL=${stdenv.shell} CXX=${cc} install";
meta = with stdenv.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;
};
}