2014-03-25 07:51:35 +04:00
|
|
|
{ stdenv, fetchurl, gmp }:
|
|
|
|
|
2014-04-27 20:24:09 +04:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ats-${version}";
|
|
|
|
version = "0.2.11";
|
2014-03-25 07:51:35 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/ats-lang/ats-lang-anairiats-${version}.tgz";
|
|
|
|
sha256 = "0rqykyx5whichx85jr4l4c9fdan0qsdd4kwd7a81k3l07zbd9fc6";
|
|
|
|
};
|
2014-04-27 20:24:09 +04:00
|
|
|
|
2014-03-25 07:51:35 +04:00
|
|
|
# this is necessary because atxt files usually include some .hats files
|
|
|
|
patches = [ ./install-atsdoc-hats-files.patch ];
|
|
|
|
buildInputs = [ gmp ];
|
|
|
|
|
|
|
|
meta = {
|
2014-04-27 20:24:09 +04:00
|
|
|
description = "Functional programming language with dependent types";
|
|
|
|
homepage = "http://www.ats-lang.org";
|
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2015-01-02 23:41:16 +03:00
|
|
|
# TODO: it looks like ATS requires gcc specifically. Someone with more knowledge
|
|
|
|
# will need to experiment.
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-04-27 20:24:09 +04:00
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
2014-03-25 07:51:35 +04:00
|
|
|
};
|
|
|
|
}
|