summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/gmetadom/default.nix
blob: 1d5aabf30046429ae8a0449418490e30c6659aa9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{stdenv, fetchurl, ocaml, findlib, gdome2, libxslt, pkgconfig}:

let
  pname = "gmetadom";
in

stdenv.mkDerivation rec {
  name = "${pname}-${version}";
  version = "0.2.6";

  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"
  '';


  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ocaml findlib gdome2 libxslt];
  propagatedBuildInputs = [gdome2];

  meta = {
    homepage = http://gmetadom.sourceforge.net/;
    description = "A collection of librares, each library providing a DOM implementation";
    license = stdenv.lib.licenses.lgpl21Plus;
    maintainers = [ stdenv.lib.maintainers.roconnor ];
  };
}