at 18.03-beta 25 lines 836 B view raw
1{ stdenv, fetchurl, gmp }: 2 3stdenv.mkDerivation rec { 4 name = "ats-${version}"; 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 = stdenv.lib.licenses.gpl3Plus; 20 # TODO: it looks like ATS requires gcc specifically. Someone with more knowledge 21 # will need to experiment. 22 platforms = stdenv.lib.platforms.linux; 23 maintainers = [ stdenv.lib.maintainers.thoughtpolice ]; 24 }; 25}