summary refs log tree commit diff
path: root/pkgs/development/compilers/tinycc
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2008-10-31 16:52:44 +0000
committerLudovic Courtès <ludo@gnu.org>2008-10-31 16:52:44 +0000
commitd0ef8a845ef4102562e87968519899a85a083b1e (patch)
treeb3f0c7b5b23bec34c7d420f8a4de0385fffdded4 /pkgs/development/compilers/tinycc
parent63e5663b2e6a68310faf8a0630bce8b53c6af18b (diff)
downloadnixlib-d0ef8a845ef4102562e87968519899a85a083b1e.tar
nixlib-d0ef8a845ef4102562e87968519899a85a083b1e.tar.gz
nixlib-d0ef8a845ef4102562e87968519899a85a083b1e.tar.bz2
nixlib-d0ef8a845ef4102562e87968519899a85a083b1e.tar.lz
nixlib-d0ef8a845ef4102562e87968519899a85a083b1e.tar.xz
nixlib-d0ef8a845ef4102562e87968519899a85a083b1e.tar.zst
nixlib-d0ef8a845ef4102562e87968519899a85a083b1e.zip
Add TinyCC (TCC), a small, fast, and embeddable C compiler and interpreter.
svn path=/nixpkgs/trunk/; revision=13168
Diffstat (limited to 'pkgs/development/compilers/tinycc')
-rw-r--r--pkgs/development/compilers/tinycc/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/compilers/tinycc/default.nix b/pkgs/development/compilers/tinycc/default.nix
new file mode 100644
index 000000000000..e4e50f7dbfeb
--- /dev/null
+++ b/pkgs/development/compilers/tinycc/default.nix
@@ -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+";
+    };
+  }