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
53 lines
1.3 KiB
Nix
53 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
zlib,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bwa";
|
|
version = "0.7.19";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lh3";
|
|
repo = "bwa";
|
|
tag = "v${version}";
|
|
hash = "sha256-o3+7kf+49mnRn5PjtdOiAaI9VK1cyT9p5QUSQ/W4GxI=";
|
|
};
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
# Avoid hardcoding gcc to allow environments with a different
|
|
# C compiler to build
|
|
preConfigure = ''
|
|
sed -i '/^CC/d' Makefile
|
|
'';
|
|
|
|
makeFlags = lib.optional stdenv.hostPlatform.isStatic "AR=${stdenv.cc.targetPrefix}ar";
|
|
|
|
# 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
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
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
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Software package for mapping low-divergent sequences against a large reference genome, such as the human genome";
|
|
mainProgram = "bwa";
|
|
license = licenses.gpl3Plus;
|
|
homepage = "https://bio-bwa.sourceforge.net/";
|
|
maintainers = with maintainers; [ luispedro ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|