Merge pull request #264385 from someplaceguy/u/polyml-enable-tests

polyml: enable tests
This commit is contained in:
Peder Bergebakken Sundt 2023-12-05 00:30:50 +01:00 committed by GitHub
commit 1a362bbee1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,13 @@ stdenv.mkDerivation rec {
pname = "polyml";
version = "5.9.1";
src = fetchFromGitHub {
owner = "polyml";
repo = "polyml";
rev = "v${version}";
sha256 = "sha256-72wm8dt+Id59A5058mVE5P9TkXW5/LZRthZoxUustVA=";
};
prePatch = lib.optionalString stdenv.isDarwin ''
substituteInPlace configure.ac --replace stdc++ c++
'';
@ -24,12 +31,13 @@ stdenv.mkDerivation rec {
"--with-gmp"
];
src = fetchFromGitHub {
owner = "polyml";
repo = "polyml";
rev = "v${version}";
sha256 = "sha256-72wm8dt+Id59A5058mVE5P9TkXW5/LZRthZoxUustVA=";
};
doCheck = true;
checkPhase = ''
runHook preCheck
make check
runHook postCheck
'';
meta = with lib; {
description = "Standard ML compiler and interpreter";