2024-09-19 14:19:46 +00:00
|
|
|
{ lib, gccStdenv, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
gccStdenv.mkDerivation rec {
|
|
|
|
pname = "muscle";
|
2022-11-27 09:42:12 +00:00
|
|
|
version = "5.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rcedgar";
|
2023-03-15 16:39:30 +00:00
|
|
|
repo = pname;
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = version;
|
2022-11-27 09:42:12 +00:00
|
|
|
hash = "sha256-NpnJziZXga/T5OavUt3nQ5np8kJ9CFcSmwyg4m6IJsk=";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/src";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
patches = [
|
|
|
|
./muscle-darwin-g++.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
let
|
|
|
|
target =
|
2024-09-26 11:04:55 +00:00
|
|
|
if gccStdenv.hostPlatform.isDarwin
|
2024-09-19 14:19:46 +00:00
|
|
|
then "Darwin"
|
|
|
|
else "Linux";
|
|
|
|
in
|
|
|
|
''
|
|
|
|
install -m755 -D ${target}/muscle $out/bin/muscle
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-11-27 09:42:12 +00:00
|
|
|
description = "Multiple sequence alignment with top benchmark scores scalable to thousands of sequences";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "muscle";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
homepage = "https://www.drive5.com/muscle/";
|
2022-11-27 09:42:12 +00:00
|
|
|
maintainers = with maintainers; [ unode thyol ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|