Files
nixpkgs/pkgs/by-name/tr/trimal/package.nix
Eric Rodrigues Pires de79fb1cd7 trimal: fix homepage
2026-09-26 19:58:28 -03:00

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 ];
};
})