2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, ocamlPackages, libGLU, libGL, freeglut
|
2020-04-24 23:36:52 +00:00
|
|
|
, libmysqlclient, mpfr, gmp, libtiff, libjpeg, libpng, giflib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "glsurf-3.3.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://raffalli.eu/~christophe/glsurf/glsurf-3.3.1.tar.gz";
|
|
|
|
sha256 = "0w8xxfnw2snflz8wdr2ca9f5g91w5vbyp1hwlx1v7vg83d4bwqs7";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ freeglut libGLU libGL libmysqlclient mpfr gmp
|
|
|
|
libtiff libjpeg libpng giflib ]
|
|
|
|
++ (with ocamlPackages; [
|
|
|
|
ocaml findlib ocaml_mysql lablgl camlimages_4_0 mlgmpidl
|
|
|
|
]);
|
|
|
|
|
|
|
|
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 = "https://raffalli.eu/~christophe/glsurf/";
|
|
|
|
description = "A program to draw implicit surfaces and curves";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|