2013-07-25 09:05:49 +01:00
|
|
|
{ fetchgit, stdenv, gmp, which, flex, bison, makeWrapper
|
2015-01-01 23:49:20 +00:00
|
|
|
, autoconf, automake, libtool, jdk, perl }:
|
2013-07-17 17:17:38 +01:00
|
|
|
|
2013-07-24 09:50:42 +01:00
|
|
|
stdenv.mkDerivation {
|
2014-03-31 03:24:43 +01:00
|
|
|
name = "aldor-1.2.0";
|
2013-07-17 17:17:38 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/pippijn/aldor";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "19v07ffq4r1gjnmg7a8ifgjkwan9a3rwbj0qjz8fycwy221844m6";
|
2014-03-31 03:24:43 +01:00
|
|
|
rev = "15471e75f3d65b93150f414ebcaf59a03054b68d";
|
2013-07-17 17:17:38 +01:00
|
|
|
};
|
|
|
|
|
2013-07-25 09:05:49 +01:00
|
|
|
buildInputs = [ gmp which flex bison makeWrapper autoconf automake libtool
|
2015-01-01 23:49:20 +00:00
|
|
|
jdk perl ];
|
2013-07-17 17:17:38 +01:00
|
|
|
|
2013-07-25 09:05:49 +01:00
|
|
|
preConfigure = ''
|
|
|
|
cd aldor ;
|
|
|
|
./autogen.sh ;
|
|
|
|
'';
|
2013-07-17 17:17:38 +01:00
|
|
|
|
2013-07-25 09:05:49 +01:00
|
|
|
postInstall = ''
|
|
|
|
for prog in aldor unicl javagen ;
|
2013-07-17 17:17:38 +01:00
|
|
|
do
|
|
|
|
wrapProgram $out/bin/$prog --set ALDORROOT $out \
|
2015-01-01 23:49:20 +00:00
|
|
|
--prefix PATH : ${jdk}/bin \
|
2014-12-17 18:11:30 +00:00
|
|
|
--prefix PATH : ${stdenv.cc}/bin ;
|
2013-07-17 17:17:38 +01:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2013-07-24 09:50:42 +01:00
|
|
|
meta = {
|
2016-06-25 14:24:52 +01:00
|
|
|
# Please become a maintainer to fix this package
|
|
|
|
broken = true;
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://www.aldor.org/;
|
2013-10-05 15:22:46 +01:00
|
|
|
description = "Programming language with an expressive type system";
|
2013-07-24 09:50:42 +01:00
|
|
|
license = stdenv.lib.licenses.asl20;
|
2013-07-17 17:17:38 +01: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 09:50:42 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2013-07-17 17:17:38 +01:00
|
|
|
};
|
|
|
|
}
|