about summary refs log tree commit diff
path: root/pkgs/development/compilers/manticore/builder.sh
blob: 8fb4ab850eb142b3caa0a8c90ad007bfa1664962 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

source $stdenv/setup
echo "Building Manticore research compiler."
set -xe

PATH=$smlnj/bin:$PATH

mkdir -p $out/bin

# Manticore seems to use the MLB files from the build tree,
# so for now we copy the whole build tree into the store:
cd $out/
tar xf $src
mv manticore* repo_checkout
cd repo_checkout/
# TODO: At the very least, this could probably be cut down to a subset
# of the repo.

${autoconf}/bin/autoheader -Iconfig
${autoconf}/bin/autoconf -Iconfig
./configure --prefix=$out
make build -j
make install