From cb980d97d73a7059fdad1ec93746fa8de78f68ea Mon Sep 17 00:00:00 2001 From: Christophe Raffalli Date: Sun, 16 Jun 2013 22:27:14 +0200 Subject: added glsurf package --- pkgs/applications/science/math/glsurf/default.nix | 32 +++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pkgs/applications/science/math/glsurf/default.nix (limited to 'pkgs/applications/science/math/glsurf') diff --git a/pkgs/applications/science/math/glsurf/default.nix b/pkgs/applications/science/math/glsurf/default.nix new file mode 100644 index 00000000000..30ed454f61a --- /dev/null +++ b/pkgs/applications/science/math/glsurf/default.nix @@ -0,0 +1,32 @@ + +{ stdenv, fetchdarcs, ocaml, findlib, lablgl, camlimages, mesa, freeglut, ocaml_mysql, mlgmp, mpfr, gmp, libtiff, libjpeg, libpng_apng, giflib, freetype, libXpm }: + +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 + libtiff libjpeg libpng_apng giflib freetype libXpm ]; + + 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"; + }; +} -- cgit 1.4.1