Unverified Commit 9acce3ea authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

mimalloc: 2.1.8 -> 3.0.3 (#374185)

parents 5abe83ce fa19834c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
@@ -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"