2017-09-04 23:09:40 +01:00
|
|
|
{ stdenv, fetchurl, zlib }:
|
2016-06-07 22:44:42 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "bwa";
|
2018-01-22 01:58:36 +00:00
|
|
|
version = "0.7.17";
|
2016-06-07 22:44:42 +01:00
|
|
|
|
2017-09-04 23:09:40 +01:00
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://sourceforge/bio-bwa/${pname}-${version}.tar.bz2";
|
2018-01-22 01:58:36 +00:00
|
|
|
sha256 = "1zfhv2zg9v1icdlq4p9ssc8k01mca5d1bd87w71py2swfi74s6yy";
|
2016-06-07 22:44:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
|
2020-11-29 22:46:51 +00:00
|
|
|
# Avoid hardcoding gcc to allow environments with a different
|
|
|
|
# C compiler to build
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i '/^CC/d' Makefile
|
|
|
|
'';
|
|
|
|
|
2020-09-19 01:59:07 +01:00
|
|
|
# it's unclear which headers are intended to be part of the public interface
|
|
|
|
# so we may find ourselves having to add more here over time
|
2016-06-07 22:44:42 +01:00
|
|
|
installPhase = ''
|
2020-09-19 01:59:07 +01:00
|
|
|
install -vD -t $out/bin bwa
|
|
|
|
install -vD -t $out/lib libbwa.a
|
|
|
|
install -vD -t $out/include bntseq.h
|
|
|
|
install -vD -t $out/include bwa.h
|
|
|
|
install -vD -t $out/include bwamem.h
|
|
|
|
install -vD -t $out/include bwt.h
|
2016-06-07 22:44:42 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A software package for mapping low-divergent sequences against a large reference genome, such as the human genome";
|
|
|
|
license = licenses.gpl3;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://bio-bwa.sourceforge.net/";
|
2016-06-07 22:44:42 +01:00
|
|
|
maintainers = with maintainers; [ luispedro ];
|
2020-11-29 22:46:51 +00:00
|
|
|
platforms = platforms.x86_64;
|
2016-06-07 22:44:42 +01:00
|
|
|
};
|
|
|
|
}
|