2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, sqlite
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mps";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.118.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Ravenbrook";
|
|
|
|
repo = "mps";
|
|
|
|
rev = "refs/tags/release-${version}";
|
|
|
|
hash = "sha256-3ql3jWLccgnQHKf23B1en+nJ9rxqmHcWd7aBr93YER0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Disable -Werror to avoid biuld failure on fresh toolchains like
|
|
|
|
# gcc-13.
|
|
|
|
substituteInPlace code/gc.gmk --replace-fail '-Werror ' ' '
|
|
|
|
substituteInPlace code/gp.gmk --replace-fail '-Werror ' ' '
|
|
|
|
substituteInPlace code/ll.gmk --replace-fail '-Werror ' ' '
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ sqlite ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A flexible memory management and garbage collection library";
|
|
|
|
homepage = "https://www.ravenbrook.com/project/mps";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.sleepycat;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = [ lib.maintainers.thoughtpolice ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|