mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 21:13:40 +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
943 B
Nix
39 lines
943 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, llvmPackages
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "veryfasttree";
|
|
version = "4.0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "citiususc";
|
|
repo = "veryfasttree";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-S4FW91VEdTPOIwRamz62arLSN9inxoKXpKsen2ISXMo=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = lib.optional stdenv.cc.isClang llvmPackages.openmp;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -m755 -D VeryFastTree $out/bin/VeryFastTree
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Speeding up the estimation of phylogenetic trees for large alignments through parallelization and vectorization strategies";
|
|
mainProgram = "VeryFastTree";
|
|
homepage = "https://github.com/citiususc/veryfasttree";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ thyol ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|