about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/compilers/ats/default.nix
blob: 35e1b1dd1058c35e7323bdba070ebf21afee1a52 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib, stdenv, fetchurl, gmp }:

stdenv.mkDerivation rec {
  pname = "ats";
  version = "0.2.12";

  src = fetchurl {
    url = "mirror://sourceforge/ats-lang/ats-lang-anairiats-${version}.tgz";
    sha256 = "0l2kj1fzhxwsklwmn5yj2vp9rmw4jg0b18bzwqz72bfi8i39736k";
  };

  # this is necessary because atxt files usually include some .hats files
  patches = [ ./install-atsdoc-hats-files.patch ];
  buildInputs = [ gmp ];

  meta = {
    description = "Functional programming language with dependent types";
    homepage    = "http://www.ats-lang.org";
    license     = lib.licenses.gpl3Plus;
    # TODO: it looks like ATS requires gcc specifically. Someone with more knowledge
    # will need to experiment.
    platforms   = lib.platforms.linux;
    maintainers = [ lib.maintainers.thoughtpolice ];
  };
}