755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
38 lines
976 B
Nix
38 lines
976 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, sqlite
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mps";
|
|
version = "1.118.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Ravenbrook";
|
|
repo = "mps";
|
|
rev = "refs/tags/release-${version}";
|
|
hash = "sha256-3ql3jWLccgnQHKf23B1en+nJ9rxqmHcWd7aBr93YER0=";
|
|
};
|
|
|
|
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 ' ' '
|
|
'';
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
buildInputs = [ sqlite ];
|
|
|
|
meta = {
|
|
description = "Flexible memory management and garbage collection library";
|
|
homepage = "https://www.ravenbrook.com/project/mps";
|
|
license = lib.licenses.sleepycat;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ lib.maintainers.thoughtpolice ];
|
|
};
|
|
}
|