20 x86_64-linux = fetchurl {
21 url = "https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/${version}/ncbi-blast-${version}+-x64-linux.tar.gz";
22 hash = "sha256-OO8MNOk6k0J9FlAGyCOhP+hirEIT6lL+rIInB8dQWEU=";
24 aarch64-linux = fetchurl {
25 url = "https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/${version}/ncbi-blast-${version}+-aarch64-linux.tar.gz";
26 hash = "sha256-JlOyoxZQBbvUcHIMv5muTuGQgrh2uom3rzDurhHQ+FM=";
28 x86_64-darwin = fetchurl {
29 url = "https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/${version}/ncbi-blast-${version}+-x64-macosx.tar.gz";
30 hash = "sha256-eMfuwMCD6VlDgeshLslDhYBBp0YOpL+6q/zSchR0bAs=";
32 aarch64-darwin = x86_64-darwin;
34 src = srcs.${stdenv.hostPlatform.system};
37 inherit pname version src;
39 nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ];
46 ++ lib.optionals stdenv.hostPlatform.isLinux [
56 install -Dm755 bin/* -t $out/bin
62 substituteInPlace $out/bin/get_species_taxids.sh \
63 --replace /bin/rm ${coreutils}/bin/rm
67 inherit (blast.meta) description homepage license;
74 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
75 maintainers = with maintainers; [ natsukium ];