From 73b01f6af3e9bab8a91281f8d301323e819ab496 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Sun, 22 Feb 2026 23:32:33 +0100 Subject: [PATCH] add thread-pool library dependency --- flake.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/flake.nix b/flake.nix index 9ff6e54..3caaadb 100644 --- a/flake.nix +++ b/flake.nix @@ -97,6 +97,25 @@ rec { ''; }; + thread-pool = stdenv.mkDerivation { + pname = "thread-pool"; + version = "5.1.0"; + + src = pkgs.fetchFromGitHub { + owner = "bshoshany"; + repo = "thread-pool"; + rev = "bd4533f1f70c2b975cbd5769a60d8eaaea1d2233"; + hash = "sha256-/RMo5pe9klgSWmoqBpHMq2lbJsnCxMzhsb3ZPsw3aZw="; + }; + + # Header-only library + dontBuild = true; + installPhase = '' + mkdir -p $out + mv ./include $out/include + ''; + }; + # =========================================================================================== # Specify dependencies # https://nixos.org/manual/nixpkgs/stable/#ssec-stdenv-dependencies-overview @@ -144,6 +163,7 @@ rec { # octree # this one doesn't store center of mass per node - which I need :( llvmPackages.openmp # not required for compilation but for clangd to find the headers tracy + thread-pool # raylib-cpp # tinyobjloader # gperftools