2017-03-25 14:54:24 +00:00
|
|
|
{ stdenv, fetchFromGitHub, coreutils, autoreconfHook, smlnj }:
|
2014-08-19 07:36:57 +01:00
|
|
|
|
2017-03-25 14:54:24 +00:00
|
|
|
let
|
2018-12-01 06:52:34 +00:00
|
|
|
rev= "47273c463fc3c5d0a0ae655cf75a4700bdb020b4";
|
2017-03-25 14:54:24 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
2014-08-19 07:36:57 +01:00
|
|
|
name = "manticore-${version}";
|
2018-12-01 06:52:34 +00:00
|
|
|
version = "2018.09.29";
|
2017-03-25 14:54:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-03-13 22:51:19 +00:00
|
|
|
owner = "ManticoreProject";
|
|
|
|
repo = "manticore";
|
2018-12-01 06:52:34 +00:00
|
|
|
sha256 = "1prrgp7ldkdnrdbj224qqkirw8bj72460ix97c96fy264j9c97cn";
|
2017-03-25 14:54:24 +00:00
|
|
|
inherit rev;
|
2014-08-19 07:36:57 +01:00
|
|
|
};
|
2017-03-25 14:54:24 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
buildInputs = [ coreutils smlnj ];
|
|
|
|
|
|
|
|
autoreconfFlags = "-Iconfig -vfi";
|
|
|
|
|
2017-03-25 18:43:42 +00:00
|
|
|
unpackPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
cd $out
|
|
|
|
unpackFile $src
|
2018-03-13 22:51:19 +00:00
|
|
|
mv source repo_checkout
|
2017-03-25 18:43:42 +00:00
|
|
|
cd repo_checkout
|
|
|
|
chmod u+w . -R
|
|
|
|
'';
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
substituteInPlace configure.ac --replace 'MANTICORE_ROOT=`pwd`' 'MANTICORE_ROOT=$out/repo_checkout'
|
|
|
|
'';
|
2017-03-25 14:54:24 +00:00
|
|
|
|
|
|
|
preInstall = "mkdir -p $out/bin";
|
2014-08-19 07:36:57 +01:00
|
|
|
|
|
|
|
meta = {
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "A parallel, pure variant of Standard ML";
|
2014-08-19 07:36:57 +01:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Manticore is a high-level parallel programming language aimed at
|
|
|
|
general-purpose applications running on multi-core
|
|
|
|
processors. Manticore supports parallelism at multiple levels:
|
|
|
|
explicit concurrency and coarse-grain parallelism via CML-style
|
|
|
|
constructs and fine-grain parallelism via various light-weight
|
|
|
|
notations, such as parallel tuple expressions and NESL/Nepal-style
|
|
|
|
parallel array comprehensions.
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = http://manticore.cs.uchicago.edu/;
|
|
|
|
};
|
|
|
|
}
|