ats/ats2: clean-up, adopt, add Hydra packages

This also bumps ATS2 to version 0.0.7

Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
Austin Seipp 2014-04-27 11:24:09 -05:00
parent 92f7781f00
commit e590c0a867
2 changed files with 18 additions and 35 deletions

View File

@ -1,41 +1,23 @@
{ stdenv, fetchurl, gmp }: { stdenv, fetchurl, gmp }:
let version = "0.2.11"; in stdenv.mkDerivation { stdenv.mkDerivation rec {
name = "ats-anairiats-${version}"; name = "ats-${version}";
version = "0.2.11";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/ats-lang/ats-lang-anairiats-${version}.tgz"; url = "mirror://sourceforge/ats-lang/ats-lang-anairiats-${version}.tgz";
sha256 = "0rqykyx5whichx85jr4l4c9fdan0qsdd4kwd7a81k3l07zbd9fc6"; sha256 = "0rqykyx5whichx85jr4l4c9fdan0qsdd4kwd7a81k3l07zbd9fc6";
}; };
# this is necessary because atxt files usually include some .hats files # this is necessary because atxt files usually include some .hats files
patches = [ ./install-atsdoc-hats-files.patch ]; patches = [ ./install-atsdoc-hats-files.patch ];
buildInputs = [ gmp ]; buildInputs = [ gmp ];
meta = { meta = {
description = "A statically typed programming language that unifies implementation with formal specification"; description = "Functional programming language with dependent types";
homepage = http://www.ats-lang.org/; homepage = "http://www.ats-lang.org";
license = stdenv.lib.licenses.gpl3Plus; license = stdenv.lib.licenses.gpl3Plus;
longDescription = platforms = stdenv.lib.platforms.unix;
'' maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
ATS is a programming language with a highly expressive type system
rooted in the framework Applied Type System. In particular, both
dependent types and linear types are available in ATS. The current
implementation of ATS (ATS/Anairiats) is written in ATS itself. It can
be as efficient as C/C++ and supports a variety of programming
paradigms.
In addition, ATS contains a component ATS/LF that supports a form of
(interactive) theorem proving, where proofs are constructed as total
functions. With this component, ATS advocates a programming style that
combines programming with theorem proving. Furthermore, this component
may be used as a logical framework to encode various deduction systems
and their (meta-)properties.
This package contains the compiler atsopt, the frontend atscc,
and the lexer atslex.
'';
}; };
platforms = stdenv.lib.platforms.all;
} }

View File

@ -1,20 +1,21 @@
{ stdenv, fetchurl, gmp }: { stdenv, fetchurl, gmp }:
let version = "0.0.6"; in stdenv.mkDerivation { stdenv.mkDerivation rec {
name = "ats2-postiats-${version}"; name = "ats2-${version}";
version = "0.0.7";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/ats2-lang/ATS2-Postiats-${version}.tgz"; url = "mirror://sourceforge/ats2-lang/ATS2-Postiats-${version}.tgz";
sha256 = "110a4drzf656j9s5yfvxj1cwgh5g9ysnh40cv8y9qfjjkki8vd5b"; sha256 = "1cv7caaf9fj6z3kln02ikkbmcy42324v39lzx3cf6qcsywwpm8fx";
}; };
buildInputs = [ gmp ]; buildInputs = [ gmp ];
meta = { meta = {
description = "A statically typed programming language that unifies implementation with formal specification"; description = "Functional programming language with dependent types";
homepage = http://www.ats-lang.org/; homepage = "http://www.ats-lang.org";
license = stdenv.lib.licenses.gpl3Plus; license = stdenv.lib.licenses.gpl3Plus;
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
}; };
platforms = stdenv.lib.platforms.all;
} }