Skip to content

Commit

Permalink
hmmer: enable aarch64 support (NixOS#370495)
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank authored Jan 4, 2025
2 parents 4ed39fe + 2e4f197 commit 2cb020b
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 10 deletions.
49 changes: 49 additions & 0 deletions pkgs/by-name/ea/easel/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
perl,
python3,
versionCheckHook,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "easel";
version = "0.49";

src = fetchFromGitHub {
owner = "EddyRivasLab";
repo = "easel";
tag = "easel-${finalAttrs.version}";
hash = "sha256-NSKy7ptNYR0K/VFJNv+5TGWdC1ZM4Y5i/3L+3Coj/sg=";
};

nativeBuildInputs = [ autoreconfHook ];

enableParallelBuilding = true;

doCheck = true;

nativeCheckInputs = [
perl
python3
];

preCheck = ''
patchShebangs devkit/sqc
'';

doInstallCheck = true;

nativeInstallCheckInputs = [ versionCheckHook ];

meta = {
description = "Sequence analysis library used by Eddy/Rivas lab code";
homepage = "https://github.com/EddyRivasLab/easel";
license = lib.licenses.bsd2;
mainProgram = "easel";
maintainers = with lib.maintainers; [ natsukium ];
platforms = lib.platforms.unix;
};
})
45 changes: 35 additions & 10 deletions pkgs/by-name/hm/hmmer/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,44 @@
lib,
stdenv,
fetchurl,
easel,
perl,
python3,
versionCheckHook,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
version = "3.4";
pname = "hmmer";

src = fetchurl {
url = "http://eddylab.org/software/hmmer/${pname}-${version}.tar.gz";
sha256 = "sha256-ynDZT9DPJxvXBjQjqrsRbULeUzEXNDqbJ6ZcF/8G+/M=";
url = "http://eddylab.org/software/hmmer/hmmer-${finalAttrs.version}.tar.gz";
hash = "sha256-ynDZT9DPJxvXBjQjqrsRbULeUzEXNDqbJ6ZcF/8G+/M=";
};

meta = with lib; {
enableParallelBuilding = true;

doCheck = true;

nativeCheckInputs = [
perl
python3
];

preCheck = ''
install -Dm755 ${easel.src}/devkit/sqc easel/devkit/sqc
patchShebangs easel/devkit/sqc testsuite/* src/hmmpress.itest.pl
'';

doInstallCheck = true;

nativeInstallCheckInputs = [ versionCheckHook ];

versionCheckProgram = "${placeholder "out"}/bin/hmmalign";

versionCheckProgramArg = [ "-h" ];

meta = {
description = "Biosequence analysis using profile hidden Markov models";
longDescription = ''
HMMER is used for searching sequence databases for sequence homologs, and for making sequence alignments. It implements methods using probabilistic models called profile hidden Markov models (profile HMMs).
Expand All @@ -22,10 +48,9 @@ stdenv.mkDerivation rec {
HMMER can be downloaded and installed as a command line tool on your own hardware, and now it is also more widely accessible to the scientific community via new search servers at the European Bioinformatics Institute.
'';
homepage = "http://hmmer.org/";
changelog = "https://github.com/EddyRivasLab/hmmer/blob/hmmer-${version}/release-notes/RELEASE-${version}.md";
license = licenses.gpl3;
maintainers = [ maintainers.iimog ];
# at least SSE is *required*
platforms = platforms.x86_64;
changelog = "https://github.com/EddyRivasLab/hmmer/blob/hmmer-${finalAttrs.version}/release-notes/RELEASE-${finalAttrs.version}.md";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.iimog ];
platforms = lib.platforms.unix;
};
}
})

0 comments on commit 2cb020b

Please sign in to comment.