From e590c0a867e84f3bdf59ff596b763c1d40d3f77f Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Sun, 27 Apr 2014 11:24:09 -0500 Subject: [PATCH] ats/ats2: clean-up, adopt, add Hydra packages This also bumps ATS2 to version 0.0.7 Signed-off-by: Austin Seipp --- pkgs/development/compilers/ats/default.nix | 36 ++++++--------------- pkgs/development/compilers/ats2/default.nix | 17 +++++----- 2 files changed, 18 insertions(+), 35 deletions(-) diff --git a/pkgs/development/compilers/ats/default.nix b/pkgs/development/compilers/ats/default.nix index a5ed478a879f..6f15c0599efc 100644 --- a/pkgs/development/compilers/ats/default.nix +++ b/pkgs/development/compilers/ats/default.nix @@ -1,41 +1,23 @@ { stdenv, fetchurl, gmp }: -let version = "0.2.11"; in stdenv.mkDerivation { - name = "ats-anairiats-${version}"; +stdenv.mkDerivation rec { + name = "ats-${version}"; + version = "0.2.11"; src = fetchurl { url = "mirror://sourceforge/ats-lang/ats-lang-anairiats-${version}.tgz"; sha256 = "0rqykyx5whichx85jr4l4c9fdan0qsdd4kwd7a81k3l07zbd9fc6"; }; + # this is necessary because atxt files usually include some .hats files patches = [ ./install-atsdoc-hats-files.patch ]; - buildInputs = [ gmp ]; meta = { - description = "A statically typed programming language that unifies implementation with formal specification"; - homepage = http://www.ats-lang.org/; - license = stdenv.lib.licenses.gpl3Plus; - longDescription = - '' - 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. - ''; + description = "Functional programming language with dependent types"; + homepage = "http://www.ats-lang.org"; + license = stdenv.lib.licenses.gpl3Plus; + platforms = stdenv.lib.platforms.unix; + maintainers = [ stdenv.lib.maintainers.thoughtpolice ]; }; - - platforms = stdenv.lib.platforms.all; } diff --git a/pkgs/development/compilers/ats2/default.nix b/pkgs/development/compilers/ats2/default.nix index c1c71b0dfe21..1f6a8b6c6e08 100644 --- a/pkgs/development/compilers/ats2/default.nix +++ b/pkgs/development/compilers/ats2/default.nix @@ -1,20 +1,21 @@ { stdenv, fetchurl, gmp }: -let version = "0.0.6"; in stdenv.mkDerivation { - name = "ats2-postiats-${version}"; +stdenv.mkDerivation rec { + name = "ats2-${version}"; + version = "0.0.7"; src = fetchurl { url = "mirror://sourceforge/ats2-lang/ATS2-Postiats-${version}.tgz"; - sha256 = "110a4drzf656j9s5yfvxj1cwgh5g9ysnh40cv8y9qfjjkki8vd5b"; + sha256 = "1cv7caaf9fj6z3kln02ikkbmcy42324v39lzx3cf6qcsywwpm8fx"; }; buildInputs = [ gmp ]; meta = { - description = "A statically typed programming language that unifies implementation with formal specification"; - homepage = http://www.ats-lang.org/; - license = stdenv.lib.licenses.gpl3Plus; + description = "Functional programming language with dependent types"; + homepage = "http://www.ats-lang.org"; + license = stdenv.lib.licenses.gpl3Plus; + platforms = stdenv.lib.platforms.unix; + maintainers = [ stdenv.lib.maintainers.thoughtpolice ]; }; - - platforms = stdenv.lib.platforms.all; }