blob: 13c25495cdc6d227c55e540751da8e4c69265cbf (
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
36
37
38
39
40
|
{stdenv, fetchurl, pkgconfig, ocaml, findlib, gmetadom, gtkmathview, lablgtk }:
let
ocaml_version = (builtins.parseDrvName ocaml.name).version;
version = "0.7.2";
pname = "lablgtkmathview";
in
stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl {
url = "http://helm.cs.unibo.it/mml-widget/sources/${pname}-${version}.tar.gz";
sha256 = "0rgrpgwrgphw106l1xawxir002b7rmzc23rcxhv8ib6rymp1divx";
};
buildInputs = [pkgconfig ocaml findlib gmetadom gtkmathview lablgtk];
createFindlibDestdir = true;
propagatedBuildInputs = [gtkmathview];
prePatch = ''
substituteInPlace Makefile.in --replace "PROPCC = @OCAML_LIB_DIR@" "PROPCC = ${lablgtk}/lib/ocaml/${ocaml_version}/site-lib"
'';
buildPhase = ''
ensureDir .test
make
make opt
'';
meta = {
homepage = http://helm.cs.unibo.it/mml-widget/;
description = "OCaml bindings for gtkmathview";
license = "LGPLv2+";
maintainers = [ stdenv.lib.maintainers.roconnor ];
};
}
|