Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 50 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ lib, stdenv, fetchFromGitHub, substituteAll, doctest, cmake}:
stdenv.mkDerivation rec { pname = "taskflow"; version = "3.7.0";
src = fetchFromGitHub { owner = "taskflow"; repo = "taskflow"; rev = "v${version}"; hash = "sha256-q2IYhG84hPIZhuogWf6ojDG9S9ZyuJz9s14kQyIc6t0="; };
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 ]; };}