1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/development/ocaml-modules/lablgtkmathview/default.nix

41 lines
1,009 B
Nix
Raw Normal View History

{stdenv, fetchurl, pkgconfig, ocaml, findlib, gmetadom, gtkmathview, lablgtk }:
let
pname = "lablgtkmathview";
in
2016-10-05 08:32:30 +01:00
stdenv.mkDerivation rec {
name = "${pname}-${version}";
2016-10-05 08:32:30 +01:00
version = "0.7.2";
src = fetchurl {
url = "http://helm.cs.unibo.it/mml-widget/sources/${pname}-${version}.tar.gz";
sha256 = "0rgrpgwrgphw106l1xawxir002b7rmzc23rcxhv8ib6rymp1divx";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ ocaml findlib gmetadom gtkmathview lablgtk];
createFindlibDestdir = true;
propagatedBuildInputs = [gtkmathview];
prePatch = ''
2016-10-05 08:32:30 +01:00
substituteInPlace Makefile.in --replace "PROPCC = @OCAML_LIB_DIR@" "PROPCC = ${lablgtk}/lib/ocaml/${ocaml.version}/site-lib"
'';
buildPhase = ''
mkdir -p .test
make
make opt
'';
meta = {
homepage = http://helm.cs.unibo.it/mml-widget/;
description = "OCaml bindings for gtkmathview";
license = stdenv.lib.licenses.lgpl2Plus;
maintainers = [ stdenv.lib.maintainers.roconnor ];
2015-01-07 07:13:20 +00:00
broken = true;
};
}