Files
nixpkgs/pkgs/by-name/mu/muscle/package.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

42 lines
847 B
Nix

{
lib,
gccStdenv,
fetchFromGitHub,
}:
gccStdenv.mkDerivation rec {
pname = "muscle";
version = "5.1.0";
src = fetchFromGitHub {
owner = "rcedgar";
repo = "muscle";
rev = version;
hash = "sha256-NpnJziZXga/T5OavUt3nQ5np8kJ9CFcSmwyg4m6IJsk=";
};
sourceRoot = "${src.name}/src";
patches = [
./muscle-darwin-g++.patch
];
installPhase =
let
target = if gccStdenv.hostPlatform.isDarwin then "Darwin" else "Linux";
in
''
install -m755 -D ${target}/muscle $out/bin/muscle
'';
meta = {
description = "Multiple sequence alignment with top benchmark scores scalable to thousands of sequences";
mainProgram = "muscle";
license = lib.licenses.gpl3Plus;
homepage = "https://www.drive5.com/muscle/";
maintainers = with lib.maintainers; [
unode
];
};
}