1{ lib, stdenv, fetchurl, gmp }:
2
3stdenv.mkDerivation rec {
4 pname = "ats";
5 version = "0.2.12";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/ats-lang/ats-lang-anairiats-${version}.tgz";
9 sha256 = "0l2kj1fzhxwsklwmn5yj2vp9rmw4jg0b18bzwqz72bfi8i39736k";
10 };
11
12 # this is necessary because atxt files usually include some .hats files
13 patches = [ ./install-atsdoc-hats-files.patch ];
14 buildInputs = [ gmp ];
15
16 meta = {
17 description = "Functional programming language with dependent types";
18 homepage = "http://www.ats-lang.org";
19 license = lib.licenses.gpl3Plus;
20 # TODO: it looks like ATS requires gcc specifically. Someone with more knowledge
21 # will need to experiment.
22 platforms = lib.platforms.linux;
23 maintainers = [ lib.maintainers.thoughtpolice ];
24 };
25}