2021-02-12 21:15:48 +00:00
|
|
|
{ lib, stdenv, fetchurl, ocamlPackages, libGLU, libGL, freeglut, giflib
|
|
|
|
, libmysqlclient, mpfr, gmp, libtiff, libjpeg, libpng
|
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 {
|
2019-11-16 00:41:23 +00:00
|
|
|
url = "https://raffalli.eu/~christophe/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
|
|
|
};
|
|
|
|
|
2021-02-12 22:32:08 +00:00
|
|
|
buildInputs = [ freeglut libGLU libGL libmysqlclient mpfr giflib gmp
|
|
|
|
libtiff libjpeg libpng ]
|
2017-06-26 18:24:33 +01:00
|
|
|
++ (with ocamlPackages; [
|
2021-02-12 22:32:08 +00:00
|
|
|
ocaml findlib ocaml_mysql lablgl camlimages_4_1_2 mlgmpidl
|
2017-06-26 18:24:33 +01:00
|
|
|
]);
|
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 = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://raffalli.eu/~christophe/glsurf/";
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "A program to draw implicit surfaces and curves";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
2013-06-16 21:27:14 +01:00
|
|
|
};
|
|
|
|
}
|