2018-02-24 13:12:44 +00:00
|
|
|
{ stdenv, fetchurl, ocamlPackages, libGLU_combined, freeglut
|
2019-09-21 19:05:09 +01:00
|
|
|
, mysql, mpfr, gmp, libtiff, libjpeg, libpng, giflib
|
2017-06-26 18:24:33 +01:00
|
|
|
}:
|
2013-06-16 21:27:14 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-06-26 18:24:33 +01:00
|
|
|
name = "glsurf-3.3.1";
|
2013-06-16 21:27:14 +01:00
|
|
|
|
2017-06-26 18:24:33 +01:00
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://lama.univ-savoie.fr/~raffalli/glsurf/glsurf-3.3.1.tar.gz";
|
2017-06-26 18:24:33 +01:00
|
|
|
sha256 = "0w8xxfnw2snflz8wdr2ca9f5g91w5vbyp1hwlx1v7vg83d4bwqs7";
|
2013-06-16 21:27:14 +01:00
|
|
|
};
|
|
|
|
|
2019-09-21 19:05:09 +01:00
|
|
|
buildInputs = [ freeglut libGLU_combined mysql.connector-c mpfr gmp
|
2017-06-26 18:24:33 +01:00
|
|
|
libtiff libjpeg libpng giflib ]
|
|
|
|
++ (with ocamlPackages; [
|
|
|
|
ocaml findlib ocaml_mysql lablgl camlimages_4_0 mlgmpidl
|
|
|
|
]);
|
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;
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "A program to draw implicit surfaces and curves";
|
2018-08-20 19:16:00 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
2013-06-16 21:27:14 +01:00
|
|
|
};
|
|
|
|
}
|