From 82d4f6b43ddc9868a6f512d8cf71bf144dd0e11c Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Mon, 3 Jul 2023 12:29:44 +0300 Subject: [PATCH] veryfasttree: fix build on darwin --- pkgs/applications/science/biology/veryfasttree/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/science/biology/veryfasttree/default.nix b/pkgs/applications/science/biology/veryfasttree/default.nix index 821fbde9eb83..a5d54edce524 100644 --- a/pkgs/applications/science/biology/veryfasttree/default.nix +++ b/pkgs/applications/science/biology/veryfasttree/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, cmake }: +{ lib, stdenv, fetchFromGitHub, cmake, llvmPackages}: stdenv.mkDerivation rec { pname = "veryfasttree"; @@ -12,6 +12,7 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ cmake ]; + buildInputs = lib.optional stdenv.cc.isClang llvmPackages.openmp; installPhase = '' install -m755 -D VeryFastTree $out/bin/VeryFastTree @@ -22,5 +23,6 @@ stdenv.mkDerivation rec { license = licenses.gpl3Plus; homepage = "https://github.com/citiususc/veryfasttree"; maintainers = with maintainers; [ thyol ]; + platforms = platforms.all; }; }