From 596c5e7ea26ba8c0bcd6d2f09ca7cb8202c20e70 Mon Sep 17 00:00:00 2001 From: Luis Pedro Coelho Date: Wed, 4 May 2022 02:20:50 +0200 Subject: [PATCH] Static bwa AR needs to be passed specifically on the command line --- pkgs/applications/science/biology/bwa/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/science/biology/bwa/default.nix b/pkgs/applications/science/biology/bwa/default.nix index a2a11b1d4517..d4727b41bd0e 100644 --- a/pkgs/applications/science/biology/bwa/default.nix +++ b/pkgs/applications/science/biology/bwa/default.nix @@ -17,6 +17,8 @@ stdenv.mkDerivation rec { 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 = ''