nixpkgs/pkgs/by-name/ka/kalign/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.2 KiB
Nix
Raw Normal View History

2023-06-14 12:05:58 +00:00
{ lib
, stdenv
, cmake
, fetchFromGitHub
, llvmPackages
, enableSse4_1 ? stdenv.hostPlatform.sse4_1Support
, enableAvx ? stdenv.hostPlatform.avxSupport
, enableAvx2 ? stdenv.hostPlatform.avx2Support
}:
stdenv.mkDerivation (finalAttrs: {
pname = "kalign";
2023-12-11 06:26:11 +00:00
version = "3.4.0";
2023-06-14 12:05:58 +00:00
src = fetchFromGitHub {
owner = "TimoLassmann";
repo = "kalign";
rev = "refs/tags/v${finalAttrs.version}";
2023-12-11 06:26:11 +00:00
hash = "sha256-QcFNaCTqj6CFiOzQ6ezfBL0mu8PDU11hyNdkcsLOPzA=";
2023-06-14 12:05:58 +00:00
};
nativeBuildInputs = [
cmake
];
buildInputs = lib.optionals stdenv.cc.isClang [
llvmPackages.openmp
];
cmakeFlags =
# these flags are ON by default
lib.optional (!enableSse4_1) "-DENABLE_SSE=OFF"
++ lib.optional (!enableAvx) "-DENABLE_AVX=OFF"
++ lib.optional (!enableAvx2) "-DENABLE_AVX2=OFF";
doCheck = true;
meta = {
description = "Fast multiple sequence alignment program";
mainProgram = "kalign";
2023-06-14 12:05:58 +00:00
homepage = "https://github.com/TimoLassmann/kalign";
changelog = "https://github.com/TimoLassmann/kalign/releases/tag/${lib.removePrefix "refs/tags/" finalAttrs.src.rev}";
2023-06-14 12:05:58 +00:00
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ natsukium ];
platforms = lib.platforms.unix;
};
})