git.iko.soy/typeable/nixpkgs
on master help sign in
manticore: fix build, remove builder.sh (see #23253)
commit55d21cad95cf325e42c0919d1ed8a290d9207f4d authorWilli Butz <wbutz@cyberfnord.de> dateSat 25 Mar 2017, 15:54 (10 years ago) parent5c84165
2 files changed+22−31
pkgs/development/compilers/manticore/builder.sh−24 pkgs/development/compilers/manticore/default.nix+22−7
pkgs/development/compilers/manticore/builder.shdeleted−24
@@ -1,24 +0,0 @@
1−#!@shell@
2−
3−source $stdenv/setup
4−echo "Building Manticore research compiler."
5−set -xe
6−
7−PATH=$smlnj/bin:$PATH
8−
9−mkdir -p $out/bin
10−
11−# Manticore seems to use the MLB files from the build tree,
12−# so for now we copy the whole build tree into the store:
13−cd $out/
14−tar xf $src
15−mv manticore* repo_checkout
16−cd repo_checkout/
17−# TODO: At the very least, this could probably be cut down to a subset
18−# of the repo.
19−
20−${autoconf}/bin/autoheader -Iconfig
21−${autoconf}/bin/autoconf -Iconfig
22−./configure --prefix=$out
23−make build -j
24−make install
pkgs/development/compilers/manticore/default.nix+22−7
@@ -1,14 +1,29 @@
1−{ stdenv, fetchurl, coreutils, autoconf, automake, smlnj }:
1+{ stdenv, fetchFromGitHub, coreutils, autoreconfHook, smlnj }:
22
3−stdenv.mkDerivation rec {
3+let
4+ rev = "592a5714595b4448b646a7d49df04c285668c2f8";
5+in stdenv.mkDerivation rec {
46 name = "manticore-${version}";
57 version = "2014.08.18";
6− builder = ./builder.sh;
7− src = fetchurl {
8− url = https://github.com/rrnewton/manticore_temp_mirror/archive/snapshot-20140818.tar.gz;
9− sha256 = "1x52xpj5gbcpqjqm6aw6ssn901f353zypj3d5scm8i3ad777y29d";
8+
9+ src = fetchFromGitHub {
10+ owner = "rrnewton";
11+ repo = "manticore_temp_mirror";
12+ sha256 = "1snwlm9a31wfgvzb80y7r7yvc6n0k0bi675lqwzll95as7cdswwi";
13+ inherit rev;
1014 };
11− inherit stdenv coreutils autoconf automake smlnj;
15+
16+ enableParallelBuilding = false;
17+
18+ nativeBuildInputs = [ autoreconfHook ];
19+
20+ buildInputs = [ coreutils smlnj ];
21+
22+ autoreconfFlags = "-Iconfig -vfi";
23+
24+ postPatch = "patchShebangs .";
25+
26+ preInstall = "mkdir -p $out/bin";
1227
1328 meta = {
1429 description = "A parallel, pure variant of Standard ML";