46 lines
829 B
Nix
46 lines
829 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
mlton,
|
|
mlkit,
|
|
futhark,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "smlfut";
|
|
version = "1.6.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "diku-dk";
|
|
repo = "smlfut";
|
|
rev = "v${version}";
|
|
hash = "sha256-0Bqgoyp43Y961BMghJFBUx+1lcM2HHlPDjPyLHquWiE=";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
nativeBuildInputs = [ mlton ];
|
|
|
|
env.MLCOMP = "mlton";
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
doCheck = true;
|
|
|
|
nativeCheckInputs = [
|
|
futhark
|
|
mlkit
|
|
];
|
|
|
|
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";
|
|
};
|
|
}
|