2013-06-26 15:48:45 +01:00
|
|
|
{ stdenv, fetchdarcs, ocaml, findlib, lablgl, camlimages, mesa, freeglut, ocaml_mysql, mlgmp, mpfr, gmp, libtiff, libjpeg, libpng, giflib }:
|
2013-06-16 21:27:14 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "glsurf-3.3";
|
|
|
|
|
|
|
|
src = fetchdarcs {
|
|
|
|
url = "http://lama.univ-savoie.fr/~raffalli/GlSurf";
|
|
|
|
tag = "3.3";
|
|
|
|
sha256 = ""; md5="";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib freeglut mesa
|
|
|
|
lablgl camlimages ocaml_mysql mlgmp mpfr gmp
|
2013-06-26 15:48:45 +01:00
|
|
|
libtiff libjpeg libpng giflib ];
|
2013-06-16 21:27:14 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/doc/glsurf
|
|
|
|
cp ./src/glsurf.opt $out/bin/glsurf
|
|
|
|
cp ./doc/doc.pdf $out/share/doc/glsurf
|
|
|
|
cp -r ./examples $out/share/doc/glsurf
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.lama.univ-savoie.fr/~raffalli/glsurf;
|
|
|
|
description = "GlSurf: a program to draw implicit surfaces and curves";
|
|
|
|
};
|
|
|
|
}
|