Merge pull request #224345 from natsukium/blast/darwin
blast-bin: init at 2.13.0
This commit is contained in:
commit
150dcd7ce7
2 changed files with 62 additions and 0 deletions
60
pkgs/applications/science/biology/blast/bin.nix
Normal file
60
pkgs/applications/science/biology/blast/bin.nix
Normal file
|
@ -0,0 +1,60 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, python3
|
||||
, perl
|
||||
, blast
|
||||
, autoPatchelfHook
|
||||
, zlib
|
||||
, bzip2
|
||||
, glib
|
||||
, libxml2
|
||||
, coreutils
|
||||
}:
|
||||
let
|
||||
pname = "blast-bin";
|
||||
version = "2.13.0";
|
||||
|
||||
srcs = rec {
|
||||
x86_64-linux = fetchurl {
|
||||
url = "https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/${version}/ncbi-blast-${version}+-x64-linux.tar.gz";
|
||||
hash = "sha256-QPK3OdT++GoNI1NHyEpu2/hB2hqHYPQ/vNXFAVCwVEc=";
|
||||
};
|
||||
aarch64-linux = fetchurl {
|
||||
url = "https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/${version}/ncbi-blast-${version}+-x64-arm-linux.tar.gz";
|
||||
hash = "sha256-vY8K66k7KunpBUjFsJTTb+ur5n1XmU0/mYxhZsi9ycs=";
|
||||
};
|
||||
x86_64-darwin = fetchurl {
|
||||
url = "https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/${version}/ncbi-blast-${version}+-x64-macosx.tar.gz";
|
||||
hash = "sha256-Y0JlOUl9Ego6LTxTCNny3P5c1H3fApPXQm7Z6Zhq9RA=";
|
||||
};
|
||||
aarch64-darwin = x86_64-darwin;
|
||||
};
|
||||
src = srcs.${stdenv.hostPlatform.system};
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit pname version src;
|
||||
|
||||
nativeBuildInputs = lib.optional stdenv.isLinux [ autoPatchelfHook ];
|
||||
|
||||
buildInputs = [ python3 perl ] ++ lib.optionals stdenv.isLinux [ zlib bzip2 glib libxml2 ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -Dm755 bin/* -t $out/bin
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
substituteInPlace $out/bin/get_species_taxids.sh \
|
||||
--replace /bin/rm ${coreutils}/bin/rm
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
inherit (blast.meta) description homepage license;
|
||||
platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||
maintainers = with maintainers; [ natsukium ];
|
||||
};
|
||||
}
|
|
@ -36909,6 +36909,8 @@ with pkgs;
|
|||
inherit (darwin.apple_sdk.frameworks) ApplicationServices;
|
||||
};
|
||||
|
||||
blast-bin = callPackage ../applications/science/biology/blast/bin.nix { };
|
||||
|
||||
bpp-core = callPackage ../development/libraries/science/biology/bpp-core {
|
||||
stdenv = gcc10StdenvCompat;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue