mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
Add TinyCC (TCC), a small, fast, and embeddable C compiler and interpreter.
svn path=/nixpkgs/trunk/; revision=13168
This commit is contained in:
parent
63e5663b2e
commit
d0ef8a845e
31
pkgs/development/compilers/tinycc/default.nix
Normal file
31
pkgs/development/compilers/tinycc/default.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{ stdenv, fetchurl, perl, texinfo }:
|
||||
|
||||
let version = "0.9.24"; in
|
||||
stdenv.mkDerivation {
|
||||
name = "tinycc-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://savannah/tinycc/tcc-${version}.tar.bz2";
|
||||
sha256 = "0yafz627ky0lhppa6g1mfmisnis745m39l15aixmmv5n383x9bi7";
|
||||
};
|
||||
|
||||
buildInputs = [ perl texinfo ];
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace "texi2pod.pl" \
|
||||
--replace "/usr/bin/perl" "${perl}/bin/perl"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
makeinfo --force tcc-doc.texi || true
|
||||
|
||||
ensureDir "$out/share/info"
|
||||
mv tcc-doc.info* "$out/share/info"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "TinyCC, a small, fast, and embeddable C compiler and interpreter";
|
||||
homepage = http://www.tinycc.org/;
|
||||
license = "LGPLv2+";
|
||||
};
|
||||
}
|
@ -1889,6 +1889,10 @@ let
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
tinycc = import ../development/compilers/tinycc {
|
||||
inherit fetchurl stdenv perl texinfo;
|
||||
};
|
||||
|
||||
transformers = import ../development/compilers/transformers {
|
||||
inherit fetchurl pkgconfig sdf stlport;
|
||||
aterm = aterm23;
|
||||
|
Loading…
Reference in New Issue
Block a user