1{ lib, stdenv, fetchurl, autoreconfHook, sqlite }:
2
3stdenv.mkDerivation rec {
4 pname = "mps";
5 version = "1.117.0";
6
7 src = fetchurl {
8 url = "https://www.ravenbrook.com/project/mps/release/${version}/mps-kit-${version}.tar.gz";
9 sha256 = "04ix4l7lk6nxxk9sawpnxbybvqb82lks5606ym10bc1qbc2kqdcz";
10 };
11
12 nativeBuildInputs = [ autoreconfHook ];
13 buildInputs = [ sqlite ];
14
15 # needed for 1.116.0 to build with gcc7
16 NIX_CFLAGS_COMPILE = toString [
17 "-Wno-implicit-fallthrough"
18 "-Wno-error=clobbered"
19 "-Wno-error=cast-function-type"
20 ];
21
22
23 meta = {
24 description = "A flexible memory management and garbage collection library";
25 homepage = "https://www.ravenbrook.com/project/mps";
26 license = lib.licenses.sleepycat;
27 platforms = lib.platforms.linux;
28 maintainers = [ lib.maintainers.thoughtpolice ];
29 };
30}