diff --git a/pkgs/by-name/so/solvespace/package.nix b/pkgs/by-name/so/solvespace/package.nix index 92b397f8d071..5ccf8a275d3e 100644 --- a/pkgs/by-name/so/solvespace/package.nix +++ b/pkgs/by-name/so/solvespace/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, cmake, pkg-config, wrapGAppsHook3, @@ -23,6 +24,7 @@ libspnav, libthai, libxkbcommon, + mimalloc, pangomm, pcre, util-linuxMinimal, # provides libmount @@ -42,6 +44,13 @@ stdenv.mkDerivation rec { fetchSubmodules = true; }; + patches = [ + (fetchpatch { + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-gfx/solvespace/files/solvespace-3.1-use-system-mimalloc.patch"; + hash = "sha256-XEeh6vb4fYsTmAro1ZR/8NyFl+Y+S+m/Lx+tA7o2omM="; + }) + ]; + nativeBuildInputs = [ cmake pkg-config @@ -67,6 +76,7 @@ stdenv.mkDerivation rec { libspnav libthai libxkbcommon + mimalloc pangomm pcre util-linuxMinimal