veryfasttree: use finalAttrs pattern

This commit is contained in:
Pol Dellaiera 2023-08-02 18:51:11 +02:00
parent 1fd16883d4
commit 9a772d7658
No known key found for this signature in database
GPG key ID: D476DFE9C67467CA

View file

@ -1,13 +1,18 @@
{ lib, stdenv, fetchFromGitHub, cmake, llvmPackages}:
{ lib
, stdenv
, fetchFromGitHub
, cmake
, llvmPackages
}:
stdenv.mkDerivation rec {
pname = "veryfasttree";
stdenv.mkDerivation (finalAttrs: {
pname = "veryfasttree";
version = "4.0.2";
src = fetchFromGitHub {
owner = "citiususc";
repo = pname;
rev = "v${version}";
repo = "veryfasttree";
rev = "v${finalAttrs.version}";
hash = "sha256-JMBhSxfGO3qz7Yl4s5r6zWHFefXGzu0ktEJdRUh/Uqg=";
};
@ -15,14 +20,18 @@ stdenv.mkDerivation rec {
buildInputs = lib.optional stdenv.cc.isClang llvmPackages.openmp;
installPhase = ''
runHook preInstall
install -m755 -D VeryFastTree $out/bin/VeryFastTree
runHook postInstall
'';
meta = with lib; {
meta = {
description = "Speeding up the estimation of phylogenetic trees for large alignments through parallelization and vectorization strategies";
license = licenses.gpl3Plus;
homepage = "https://github.com/citiususc/veryfasttree";
maintainers = with maintainers; [ thyol ];
platforms = platforms.all;
homepage = "https://github.com/citiususc/veryfasttree";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ thyol ];
platforms = lib.platforms.all;
};
}
})