Matita and its dependencies.

svn path=/nixpkgs/trunk/; revision=25328
This commit is contained in:
Russell O'Connor
2010-12-31 17:48:55 +00:00
parent d3bb1b2630
commit 88ec92d14c
25 changed files with 780 additions and 25 deletions
@@ -0,0 +1,36 @@
{stdenv, fetchurl, ocaml, findlib, gdome2, libxslt, pkgconfig}:
let
ocaml_version = (builtins.parseDrvName ocaml.name).version;
version = "0.2.6";
pname = "gmetadom";
in
stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://sourceforge/project/${pname}/${pname}/${version}/${pname}-${version}.tar.gz";
sha256 = "0skmlv0pnqvg99wzzzi1h4zhwzd82xg7xpkj1kwpfy7bzinjh7ig";
};
patches = [ ./gcc-4.3.dpatch ];
dontDisableStatic = true;
preConfigure=''
configureFlags="--with-ocaml-lib-prefix=$out/lib/ocaml/${ocaml_version}/site-lib"
'';
buildInputs = [ocaml findlib pkgconfig gdome2 libxslt];
propagatedBuildInputs = [gdome2];
meta = {
homepage = http://gmetadom.sourceforge.net/;
description = "GMetaDOM is a collection of librares, each library providing a DOM implementation";
license = "LGPLv2.1+";
maintainers = [ stdenv.lib.maintainers.roconnor ];
};
}
@@ -0,0 +1,18 @@
#! /bin/sh /usr/share/dpatch/dpatch-run
## gcc-4.3.dpatch by Stefano Zacchiroli <zack@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: ensure sources build with gcc-4.3
@DPATCH@
diff -urNad trunk~/src/shared/Traits.hh.in trunk/src/shared/Traits.hh.in
--- trunk~/src/shared/Traits.hh.in 2003-01-14 12:41:55.000000000 +0100
+++ trunk/src/shared/Traits.hh.in 2008-05-01 15:45:39.000000000 +0200
@@ -26,6 +26,7 @@
*/
#include <string>
+#include <cstring>
#include "@DOM_NAMESPACE@Char.hh"