Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 llvmPackages,
7}:
8
9stdenv.mkDerivation (finalAttrs: {
10 pname = "veryfasttree";
11 version = "4.0.5";
12
13 src = fetchFromGitHub {
14 owner = "citiususc";
15 repo = "veryfasttree";
16 rev = "v${finalAttrs.version}";
17 hash = "sha256-xoz2mK72gvNRpA4kGInAb3WHa/D8HvXprUQiJClLwh8=";
18 };
19
20 nativeBuildInputs = [ cmake ];
21 buildInputs = lib.optional stdenv.cc.isClang llvmPackages.openmp;
22
23 installPhase = ''
24 runHook preInstall
25
26 install -m755 -D VeryFastTree $out/bin/VeryFastTree
27
28 runHook postInstall
29 '';
30
31 meta = {
32 description = "Speeding up the estimation of phylogenetic trees for large alignments through parallelization and vectorization strategies";
33 mainProgram = "VeryFastTree";
34 homepage = "https://github.com/citiususc/veryfasttree";
35 license = lib.licenses.gpl3Plus;
36 maintainers = with lib.maintainers; [ thyol ];
37 platforms = lib.platforms.all;
38 };
39})