mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
41 lines
946 B
Nix
41 lines
946 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "trimal";
|
|
version = "1.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "trimal";
|
|
owner = "inab";
|
|
rev = "v${finalAttrs.version}";
|
|
sha256 = "sha256-ONSkYceCgYGSpABj0iOx6yj2hMyFHqCHflYRW+Q6RVc=";
|
|
};
|
|
|
|
postUnpack = ''
|
|
sourceRoot=''${sourceRoot}/source
|
|
echo Source root reset to ''${sourceRoot}
|
|
'';
|
|
|
|
makeFlags = [
|
|
"CC=${stdenv.cc.targetPrefix}c++"
|
|
"CXX=${stdenv.cc.targetPrefix}c++"
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp -a trimal readal statal $out/bin
|
|
'';
|
|
|
|
meta = {
|
|
description = "Tool for the automated removal of spurious sequences or poorly aligned regions from a multiple sequence alignment";
|
|
license = lib.licenses.gpl3;
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
|
homepage = "https://trimal.readthedocs.io/en/latest/";
|
|
maintainers = [ lib.maintainers.bzizou ];
|
|
};
|
|
})
|