about summary refs log tree commit diff
path: root/pkgs/applications/science
diff options
context:
space:
mode:
authorLuis Pedro Coelho <luis@luispedro.org>2022-05-04 02:20:50 +0200
committerLuis Pedro Coelho <luis@luispedro.org>2022-05-04 02:20:50 +0200
commit596c5e7ea26ba8c0bcd6d2f09ca7cb8202c20e70 (patch)
treee5d48e230f10a798eef7d87739223f5e590ac3c0 /pkgs/applications/science
parent47588733783c4133de4973caa466d52d9c04992a (diff)
Static bwa
AR needs to be passed specifically on the command line
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r--pkgs/applications/science/biology/bwa/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/applications/science/biology/bwa/default.nix b/pkgs/applications/science/biology/bwa/default.nix
index a2a11b1d4517f..d4727b41bd0e0 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 = ''