veryfasttree: use finalAttrs
pattern
This commit is contained in:
parent
1fd16883d4
commit
9a772d7658
1 changed files with 20 additions and 11 deletions
|
@ -1,13 +1,18 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, cmake, llvmPackages}:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, cmake
|
||||||
|
, llvmPackages
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "veryfasttree";
|
pname = "veryfasttree";
|
||||||
version = "4.0.2";
|
version = "4.0.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "citiususc";
|
owner = "citiususc";
|
||||||
repo = pname;
|
repo = "veryfasttree";
|
||||||
rev = "v${version}";
|
rev = "v${finalAttrs.version}";
|
||||||
hash = "sha256-JMBhSxfGO3qz7Yl4s5r6zWHFefXGzu0ktEJdRUh/Uqg=";
|
hash = "sha256-JMBhSxfGO3qz7Yl4s5r6zWHFefXGzu0ktEJdRUh/Uqg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -15,14 +20,18 @@ stdenv.mkDerivation rec {
|
||||||
buildInputs = lib.optional stdenv.cc.isClang llvmPackages.openmp;
|
buildInputs = lib.optional stdenv.cc.isClang llvmPackages.openmp;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
install -m755 -D VeryFastTree $out/bin/VeryFastTree
|
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";
|
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";
|
homepage = "https://github.com/citiususc/veryfasttree";
|
||||||
maintainers = with maintainers; [ thyol ];
|
license = lib.licenses.gpl3Plus;
|
||||||
platforms = platforms.all;
|
maintainers = with lib.maintainers; [ thyol ];
|
||||||
|
platforms = lib.platforms.all;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue