mimalloc: 2.1.8 -> 3.0.3 (#374185)

This commit is contained in:
Weijia Wang
2025-04-06 19:48:07 +02:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -12,13 +12,13 @@ let
in
stdenv.mkDerivation rec {
pname = "mimalloc";
version = "2.1.8";
version = "3.0.3";
src = fetchFromGitHub {
owner = "microsoft";
repo = "mimalloc";
rev = "v${version}";
sha256 = "sha256-C0cqYiXxx8tW3plUZrfAJYKeY36opGKymkZ/CWrVuEI=";
sha256 = "sha256-RjFMLInulyynrmyAg6Km/u9HGfcYeerkou0gQwCdhsA=";
};
doCheck = !stdenv.hostPlatform.isStatic;
+5
View File
@@ -22,6 +22,11 @@ stdenv.mkDerivation rec {
sha256 = "sha256-msSc6jw2xbEZfOwtqwFEDIKcwf5SDKp+j15lVbNO98g=";
};
postPatch = ''
substituteInPlace external/CMakeLists.txt \
--replace-fail 'set(mimalloc_min_version "2.1")' 'set(mimalloc_min_version "${lib.versions.majorMinor mimalloc.version}")'
'';
cmakeFlags = [
# fix for https://github.com/NixOS/nixpkgs/issues/144170
"-DCMAKE_INSTALL_INCLUDEDIR=include"