2013-07-25 10:05:49 +02:00
|
|
|
{ fetchgit, stdenv, gmp, which, flex, bison, makeWrapper
|
|
|
|
, autoconf, automake, libtool, openjdk, perl }:
|
2013-07-17 18:17:38 +02:00
|
|
|
|
2013-07-24 10:50:42 +02:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "aldor-1.1.0";
|
2013-07-17 18:17:38 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/pippijn/aldor";
|
2013-07-24 10:50:42 +02:00
|
|
|
sha256 = "14xv3jl15ib2knsdz0bd7jx64zg1qrr33q5zcr8gli860ps8gkg3";
|
2013-07-25 10:05:49 +02:00
|
|
|
rev = "f7b95835cf709654744441ddb1c515bfc2bec998";
|
2013-07-17 18:17:38 +02:00
|
|
|
};
|
|
|
|
|
2013-07-25 10:05:49 +02:00
|
|
|
buildInputs = [ gmp which flex bison makeWrapper autoconf automake libtool
|
|
|
|
openjdk perl ];
|
2013-07-17 18:17:38 +02:00
|
|
|
|
2013-07-25 10:05:49 +02:00
|
|
|
preConfigure = ''
|
|
|
|
cd aldor ;
|
|
|
|
./autogen.sh ;
|
|
|
|
'';
|
2013-07-17 18:17:38 +02:00
|
|
|
|
2013-07-25 10:05:49 +02:00
|
|
|
postInstall = ''
|
|
|
|
for prog in aldor unicl javagen ;
|
2013-07-17 18:17:38 +02:00
|
|
|
do
|
|
|
|
wrapProgram $out/bin/$prog --set ALDORROOT $out \
|
2013-07-25 10:05:49 +02:00
|
|
|
--prefix PATH : ${openjdk}/bin \
|
2013-07-17 18:17:38 +02:00
|
|
|
--prefix PATH : ${stdenv.gcc}/bin ;
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2013-07-24 10:50:42 +02:00
|
|
|
meta = {
|
|
|
|
homepage = "http://www.aldor.org/";
|
2013-07-17 18:17:38 +02:00
|
|
|
description = "Aldor is a programming language with an expressive type system";
|
2013-07-24 10:50:42 +02:00
|
|
|
license = stdenv.lib.licenses.asl20;
|
2013-07-17 18:17:38 +02:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Aldor is a programming language with an expressive type system well-suited
|
|
|
|
for mathematical computing and which has been used to develop a number of
|
|
|
|
computer algebra libraries. Originally known as A#, Aldor was conceived as
|
|
|
|
an extension language for the Axiom system, but is now used more in other settings.
|
|
|
|
In Aldor, types and functions are first class values that can be constructed
|
|
|
|
and manipulated within programs. Pervasive support for dependent types allows
|
|
|
|
static checking of dynamic objects. What does this mean for a normal user? Aldor
|
|
|
|
solves many difficulties encountered in widely-used object-oriented programming
|
|
|
|
languages. It allows programs to use a natural style, combining the more attractive
|
|
|
|
and powerful properties of functional, object-oriented and aspect-oriented styles.
|
|
|
|
'';
|
|
|
|
|
2013-07-24 10:50:42 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2013-07-17 18:17:38 +02:00
|
|
|
};
|
|
|
|
}
|