6 , enableSse4_1 ? stdenv.hostPlatform.sse4_1Support
7 , enableAvx ? stdenv.hostPlatform.avxSupport
8 , enableAvx2 ? stdenv.hostPlatform.avx2Support
11 stdenv.mkDerivation (finalAttrs: {
15 src = fetchFromGitHub {
16 owner = "TimoLassmann";
18 rev = "refs/tags/v${finalAttrs.version}";
19 hash = "sha256-QcFNaCTqj6CFiOzQ6ezfBL0mu8PDU11hyNdkcsLOPzA=";
26 buildInputs = lib.optionals stdenv.cc.isClang [
31 # these flags are ON by default
32 lib.optional (!enableSse4_1) "-DENABLE_SSE=OFF"
33 ++ lib.optional (!enableAvx) "-DENABLE_AVX=OFF"
34 ++ lib.optional (!enableAvx2) "-DENABLE_AVX2=OFF";
39 description = "Fast multiple sequence alignment program";
40 mainProgram = "kalign";
41 homepage = "https://github.com/TimoLassmann/kalign";
42 changelog = "https://github.com/TimoLassmann/kalign/releases/tag/${lib.removePrefix "refs/tags/" finalAttrs.src.rev}";
43 license = lib.licenses.gpl3Plus;
44 maintainers = with lib.maintainers; [ natsukium ];
45 platforms = lib.platforms.unix;