mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, cmake
|
|
, fetchFromGitHub
|
|
, llvmPackages
|
|
, enableSse4_1 ? stdenv.hostPlatform.sse4_1Support
|
|
, enableAvx ? stdenv.hostPlatform.avxSupport
|
|
, enableAvx2 ? stdenv.hostPlatform.avx2Support
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "kalign";
|
|
version = "3.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "TimoLassmann";
|
|
repo = "kalign";
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
|
hash = "sha256-QcFNaCTqj6CFiOzQ6ezfBL0mu8PDU11hyNdkcsLOPzA=";
|
|
};
|
|
|
|
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";
|
|
homepage = "https://github.com/TimoLassmann/kalign";
|
|
changelog = "https://github.com/TimoLassmann/kalign/releases/tag/${lib.removePrefix "refs/tags/" finalAttrs.src.rev}";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ natsukium ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|