···11+#!/bin/bash
22+33+source $stdenv/setup
44+echo "Building Manticore research compiler."
55+set -xe
66+77+PATH=$smlnj/bin:$PATH
88+99+mkdir -p $out/bin
1010+1111+# Manticore seems to use the MLB files from the build tree,
1212+# so for now we copy the whole build tree into the store:
1313+cd $out/
1414+tar xf $src
1515+mv manticore* repo_checkout
1616+cd repo_checkout/
1717+# TODO: At the very least, this could probably be cut down to a subset
1818+# of the repo.
1919+2020+${autoconf}/bin/autoheader -Iconfig
2121+${autoconf}/bin/autoconf -Iconfig
2222+./configure --prefix=$out
2323+make build -j
2424+make install
+28
pkgs/development/compilers/manticore/default.nix
···11+{ stdenv, fetchurl, coreutils, autoconf, automake, smlnj }:
22+33+stdenv.mkDerivation rec {
44+ name = "manticore-${version}";
55+ version = "2014.08.18";
66+ builder = ./builder.sh;
77+ src = fetchurl {
88+ url = https://github.com/rrnewton/manticore_temp_mirror/archive/snapshot-20140818.tar.gz;
99+ sha256 = "1x52xpj5gbcpqjqm6aw6ssn901f353zypj3d5scm8i3ad777y29d";
1010+ };
1111+ inherit stdenv coreutils autoconf automake smlnj;
1212+1313+ meta = {
1414+ description = "Manticore: a parallel, pure variant of Standard ML";
1515+1616+ longDescription = ''
1717+ Manticore is a high-level parallel programming language aimed at
1818+ general-purpose applications running on multi-core
1919+ processors. Manticore supports parallelism at multiple levels:
2020+ explicit concurrency and coarse-grain parallelism via CML-style
2121+ constructs and fine-grain parallelism via various light-weight
2222+ notations, such as parallel tuple expressions and NESL/Nepal-style
2323+ parallel array comprehensions.
2424+ '';
2525+2626+ homepage = http://manticore.cs.uchicago.edu/;
2727+ };
2828+}