2023-11-17 13:41:00 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, mlton, futhark }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "smlfut";
|
2023-12-23 11:20:18 +01:00
|
|
|
version = "1.2.0";
|
2023-11-17 13:41:00 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "diku-dk";
|
|
|
|
repo = "smlfut";
|
|
|
|
rev = "v${version}";
|
2023-12-23 11:20:18 +01:00
|
|
|
hash = "sha256-bPqvHExAoOCd6Z2/rfKd6kHeYxu/jNDz5qTklqJtlzI=";
|
2023-11-17 13:41:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ mlton ];
|
|
|
|
|
|
|
|
env.MLCOMP = "mlton";
|
|
|
|
|
|
|
|
installFlags = ["PREFIX=$(out)"];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
nativeCheckInputs = [ futhark ];
|
|
|
|
|
|
|
|
checkTarget = "run_test";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Allow SML programs to call Futhark programs";
|
|
|
|
homepage = "https://github.com/diku-dk/smlfut";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = mlton.meta.platforms;
|
|
|
|
maintainers = with maintainers; [ athas ];
|
|
|
|
mainProgram = "smlfut";
|
|
|
|
};
|
|
|
|
}
|