My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/libraries/taskflow/default.nix

50 lines
1.1 KiB

{ lib
, stdenv
, fetchFromGitHub
, substituteAll
, doctest
, cmake
}:
stdenv.mkDerivation rec {
pname = "taskflow";
version = "3.3.0";
src = fetchFromGitHub {
owner = "taskflow";
repo = "taskflow";
rev = "v${version}";
hash = "sha256-UfXGupxgtowIt3BnIVWwim3rTE57TT1C9TCx9LVyN34=";
};
patches = [
(substituteAll {
src = ./unvendor-doctest.patch;
inherit doctest;
})
];
postPatch = ''
rm -r 3rd-party
# tries to use x86 intrinsics on aarch64-darwin
sed -i '/^#if __has_include (<immintrin\.h>)/,/^#endif/d' taskflow/utility/os.hpp
'';
nativeBuildInputs = [
cmake
];
doCheck = true;
meta = {
description = "General-purpose Parallel and Heterogeneous Task Programming System";
homepage = "https://taskflow.github.io/";
changelog = let
release = lib.replaceStrings ["."] ["-"] version;
in "https://taskflow.github.io/taskflow/release-${release}.html";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ dotlambda ];
};
}