mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 09:43:14 +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.
39 lines
859 B
Nix
39 lines
859 B
Nix
{ lib, gccStdenv, fetchFromGitHub }:
|
|
|
|
gccStdenv.mkDerivation rec {
|
|
pname = "muscle";
|
|
version = "5.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rcedgar";
|
|
repo = pname;
|
|
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 = with lib; {
|
|
description = "Multiple sequence alignment with top benchmark scores scalable to thousands of sequences";
|
|
mainProgram = "muscle";
|
|
license = licenses.gpl3Plus;
|
|
homepage = "https://www.drive5.com/muscle/";
|
|
maintainers = with maintainers; [ unode thyol ];
|
|
};
|
|
}
|