diff options
author | Ludovic Courtès <ludo@gnu.org> | 2010-10-15 12:09:19 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2010-10-15 12:09:19 +0000 |
commit | 5515cc6433977010c6d31f2122bd3e4fb3c34247 (patch) | |
tree | 167597b0ba25c1a8c909edad51f52fd4e9d9a2f5 /pkgs | |
parent | 80fee739e29faf7e85d4fba50bb95f0f40d2163a (diff) | |
download | nixlib-5515cc6433977010c6d31f2122bd3e4fb3c34247.tar nixlib-5515cc6433977010c6d31f2122bd3e4fb3c34247.tar.gz nixlib-5515cc6433977010c6d31f2122bd3e4fb3c34247.tar.bz2 nixlib-5515cc6433977010c6d31f2122bd3e4fb3c34247.tar.lz nixlib-5515cc6433977010c6d31f2122bd3e4fb3c34247.tar.xz nixlib-5515cc6433977010c6d31f2122bd3e4fb3c34247.tar.zst nixlib-5515cc6433977010c6d31f2122bd3e4fb3c34247.zip |
TinyCC 0.9.25.
svn path=/nixpkgs/trunk/; revision=24300
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/compilers/tinycc/default.nix | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/pkgs/development/compilers/tinycc/default.nix b/pkgs/development/compilers/tinycc/default.nix index 435747e12486..9463aa372806 100644 --- a/pkgs/development/compilers/tinycc/default.nix +++ b/pkgs/development/compilers/tinycc/default.nix @@ -2,13 +2,13 @@ assert stdenv ? glibc; -let version = "0.9.24"; in +let version = "0.9.25"; in stdenv.mkDerivation { name = "tinycc-${version}"; src = fetchurl { url = "mirror://savannah/tinycc/tcc-${version}.tar.bz2"; - sha256 = "0yafz627ky0lhppa6g1mfmisnis745m39l15aixmmv5n383x9bi7"; + sha256 = "0dfycf80x73dz67c97j1ry29wrv35393ai5ry46i1x1fzfq6rv8v"; }; buildInputs = [ perl texinfo ]; @@ -25,18 +25,49 @@ let version = "0.9.24"; in # Tell it about the loader's location. sed -i "tccelf.c" \ -e's|".*/ld-linux\([^"]\+\)"|"${stdenv.glibc}/lib/ld-linux\1"|g' - ''; + ''; # " postInstall = '' makeinfo --force tcc-doc.texi || true ensureDir "$out/share/info" mv tcc-doc.info* "$out/share/info" + + echo 'int main () { printf ("it works!\n"); exit(0); }' | \ + "$out/bin/tcc" -run - ''; meta = { description = "TinyCC, a small, fast, and embeddable C compiler and interpreter"; + + longDescription = + '' TinyCC (aka TCC) is a small but hyper fast C compiler. Unlike + other C compilers, it is meant to be self-sufficient: you do not + need an external assembler or linker because TCC does that for + you. + + TCC compiles so fast that even for big projects Makefiles may not + be necessary. + + TCC not only supports ANSI C, but also most of the new ISO C99 + standard and many GNU C extensions. + + TCC can also be used to make C scripts, i.e. pieces of C source + that you run as a Perl or Python script. Compilation is so fast + that your script will be as fast as if it was an executable. + + TCC can also automatically generate memory and bound checks while + allowing all C pointers operations. TCC can do these checks even + if non patched libraries are used. + + With libtcc, you can use TCC as a backend for dynamic code + generation. + ''; + homepage = http://www.tinycc.org/; license = "LGPLv2+"; + + platforms = stdenv.lib.platforms.unix; + maintainers = [ stdenv.lib.platforms.ludo ]; }; } |