2021-01-22 11:25:31 +00:00
|
|
|
{lib, stdenv, gcc, glibc, fetchurl, fetchgit, libtool, autoconf, automake, file, gnumake, which, zsh, m4, pkg-config, perl, gnome2, gtk2, pango, sqlite, libxml2, zlib, gmp, smlnj }:
|
2014-05-29 01:05:30 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2015-05-20 16:06:18 +00:00
|
|
|
name = "aliceml-1.4-7d44dc8e";
|
2014-05-29 01:05:30 +00:00
|
|
|
|
2014-11-17 11:57:44 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/aliceml/aliceml";
|
2015-03-25 02:42:12 +00:00
|
|
|
rev = "7d44dc8e4097c6f85888bbf4ff86d51fe05b0a08";
|
2016-06-02 11:26:44 +00:00
|
|
|
sha256 = "1xpvia00cpig0i7qvz29sx7xjic6kd472ng722x4rapz8mjnf8bk";
|
2014-11-17 11:57:44 +00:00
|
|
|
fetchSubmodules = true;
|
2014-05-29 01:05:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
gecodeSrc = fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "http://www.gecode.org/download/gecode-1.3.1.tar.gz";
|
2014-05-29 01:05:30 +00:00
|
|
|
sha256 = "0mgc6llbq166jmlq3alvagqsg3730670zvbwwkdgsqklw70v9355";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2014-11-17 11:57:44 +00:00
|
|
|
stdenv gcc glibc
|
|
|
|
libtool gnumake autoconf automake
|
2020-05-16 21:12:35 +00:00
|
|
|
file which zsh m4 gtk2 zlib gmp
|
2016-09-11 21:24:51 +00:00
|
|
|
gnome2.libgnomecanvas pango sqlite
|
2020-05-16 21:12:35 +00:00
|
|
|
libxml2 pkg-config perl smlnj
|
2014-05-29 01:05:30 +00:00
|
|
|
];
|
2014-11-17 11:57:44 +00:00
|
|
|
|
|
|
|
makePatch = ./make.patch;
|
|
|
|
seamPatch = ./seam.patch;
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "patchPhase" "configurePhase" "buildPhase" ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e "s@wget ..GECODE_URL. -O - | tar xz@tar xf $gecodeSrc@" make/Makefile
|
|
|
|
patch -p1 <$makePatch
|
|
|
|
patch -p1 <$seamPatch
|
|
|
|
'';
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
make -C make setup PREFIX="$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
2016-04-16 17:50:01 +00:00
|
|
|
gmp="${gmp.dev}" zlib="${zlib.dev}" PATH=$PATH:`pwd`/seam-support/install/bin make -C make all PREFIX="$out"
|
2014-11-17 11:57:44 +00:00
|
|
|
'';
|
2014-05-29 01:05:30 +00:00
|
|
|
|
|
|
|
meta = {
|
2014-06-23 10:33:10 +00:00
|
|
|
description = "Functional programming language based on Standard ML";
|
|
|
|
longDescription = ''
|
|
|
|
Alice ML is a functional programming language based on Standard ML,
|
|
|
|
extended with rich support for concurrent, distributed, and constraint
|
|
|
|
programming.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.ps.uni-saarland.de/alice/";
|
2021-01-22 11:25:31 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.doublec ];
|
2017-03-30 11:51:06 +00:00
|
|
|
broken = true;
|
2014-05-29 01:05:30 +00:00
|
|
|
};
|
|
|
|
}
|