Skip to content

Commit

Permalink
Add nextclade3 via direct download
Browse files Browse the repository at this point in the history
Nextclade v3 is not yet released in Bioconda. Add it as a direct
download so that users of Nextstrain's Conda runtime can transition to
using nextclade3.
  • Loading branch information
victorlin committed Dec 22, 2023
1 parent fc57c78 commit b6834ea
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail -x
mkdir -p "$PREFIX"/bin

# envdir
cp -v "$SRC_DIR"/envdir "$PREFIX"/bin/envdir

# Nextclade v3
curl -fsSL -o "$PREFIX"/bin/nextclade3 https://github.com/nextstrain/nextclade/releases/download/3.0.0-alpha.1/nextclade-$("$SRC_DIR"/target-triple)
chmod a+rx "$PREFIX"/bin/nextclade3
23 changes: 23 additions & 0 deletions src/target-triple
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
#
# Get the target triple from uname.
#
set -euo pipefail

kernel="$(uname -s)"
machine="$(uname -m)"

case "$kernel/$machine" in
Linux/x86_64)
echo "x86_64-unknown-linux-gnu";;

Darwin/x86_64)
echo "x86_64-apple-darwin";;

Darwin/arm64)
echo "aarch64-apple-darwin";;

*)
echo "unsupported kernel/machine: $kernel/$machine" >&2
exit 1;;
esac

0 comments on commit b6834ea

Please sign in to comment.