Skip to content

Commit

Permalink
Merge pull request #335492 from natsukium/andi/init
Browse files Browse the repository at this point in the history
andi: init at 0.14
  • Loading branch information
natsukium authored Aug 23, 2024
2 parents cc76f5a + b4fbaae commit 3cd1fa6
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions pkgs/by-name/an/andi/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
pkg-config,
glib,
gsl,
libdivsufsort,
llvmPackages,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "andi";
version = "0.14";

src = fetchFromGitHub {
owner = "evolbioinf";
repo = "andi";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-tjQ9exFyqu/xnbUGpF6k0kE5C1D93kISjRErwHfjW9E=";
};

nativeBuildInputs = [
autoreconfHook
pkg-config
];

buildInputs = [
gsl
libdivsufsort
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.openmp ];

configureFlags = [ (lib.enableFeature finalAttrs.finalPackage.doCheck "unit-tests") ];

nativeCheckInputs = [ glib ];

doCheck = true;

preCheck = ''
patchShebangs ./test
'';

meta = {
description = "Efficient Estimation of Evolutionary Distances";
homepage = "https://github.com/evolbioinf/andi";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ natsukium ];
mainProgram = "andi";
platforms = lib.platforms.all;
};
})

0 comments on commit 3cd1fa6

Please sign in to comment.