aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2018-10-23 22:43:03 +1100
committerJustin Bedo <cu@cua0.org>2018-10-23 22:43:03 +1100
commitc4777315bcb327e6cd1df9cc09c0afc49271769c (patch)
treeef5ef7b20a67611236e72aa30a0dabcff4b9dd61
parent3acc6ee91d3394c5e98436939936e8ab93b3c8ae (diff)
Allow building bwa-mem with one core
-rw-r--r--tools/bwa-mem.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/bwa-mem.nix b/tools/bwa-mem.nix
index 0d0f7d8..3208e48 100644
--- a/tools/bwa-mem.nix
+++ b/tools/bwa-mem.nix
@@ -29,8 +29,7 @@ in stdenv.mkDerivation {
done
cores=$(echo $NIX_BUILD_CORES ${optionalString bamOutput "- 1"} | bc)
if [[ $cores -lt 1 ]] ; then
- >&2 echo "not enough build cores"
- exit 1
+ cores=1
fi
bwa mem ${optionalString (flags != null) flags} -t $cores ref.fa ${fq input1} \
${optionalString (input2 != null) (fq input2)} \