manticore: fix build, remove builder.sh (see #23253)
This commit is contained in:
parent
5c841654d8
commit
55d21cad95
|
@ -1,24 +0,0 @@
|
||||||
#!@shell@
|
|
||||||
|
|
||||||
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
|
|
|
@ -1,14 +1,29 @@
|
||||||
{ stdenv, fetchurl, coreutils, autoconf, automake, smlnj }:
|
{ stdenv, fetchFromGitHub, coreutils, autoreconfHook, smlnj }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
|
rev = "592a5714595b4448b646a7d49df04c285668c2f8";
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
name = "manticore-${version}";
|
name = "manticore-${version}";
|
||||||
version = "2014.08.18";
|
version = "2014.08.18";
|
||||||
builder = ./builder.sh;
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = https://github.com/rrnewton/manticore_temp_mirror/archive/snapshot-20140818.tar.gz;
|
owner = "rrnewton";
|
||||||
sha256 = "1x52xpj5gbcpqjqm6aw6ssn901f353zypj3d5scm8i3ad777y29d";
|
repo = "manticore_temp_mirror";
|
||||||
|
sha256 = "1snwlm9a31wfgvzb80y7r7yvc6n0k0bi675lqwzll95as7cdswwi";
|
||||||
|
inherit rev;
|
||||||
};
|
};
|
||||||
inherit stdenv coreutils autoconf automake smlnj;
|
|
||||||
|
enableParallelBuilding = false;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
|
|
||||||
|
buildInputs = [ coreutils smlnj ];
|
||||||
|
|
||||||
|
autoreconfFlags = "-Iconfig -vfi";
|
||||||
|
|
||||||
|
postPatch = "patchShebangs .";
|
||||||
|
|
||||||
|
preInstall = "mkdir -p $out/bin";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A parallel, pure variant of Standard ML";
|
description = "A parallel, pure variant of Standard ML";
|
||||||
|
|
Loading…
Reference in New Issue