From c99f33fb8931b220a10ae643f2224cb7ed62c8bb Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Fri, 10 Oct 2025 20:55:45 -0400 Subject: [PATCH] solvespace: use system mimalloc Fixes #450793 --- pkgs/by-name/so/solvespace/package.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/by-name/so/solvespace/package.nix b/pkgs/by-name/so/solvespace/package.nix index 7db3f17c387f..a2ea0ca1a4f8 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