summary refs log tree commit diff
path: root/pkgs/applications/science/math/glsurf
diff options
context:
space:
mode:
authorChristophe Raffalli <raffalli@univ-savoie.fr>2013-06-16 22:27:14 +0200
committerChristophe Raffalli <raffalli@univ-savoie.fr>2013-06-16 22:33:47 +0200
commitcb980d97d73a7059fdad1ec93746fa8de78f68ea (patch)
treee634a26aec26a16966a282df6368a3758c300105 /pkgs/applications/science/math/glsurf
parentce2efd0b5b99449f59f1f17f09cbde181072ab7c (diff)
downloadnixpkgs-cb980d97d73a7059fdad1ec93746fa8de78f68ea.tar
nixpkgs-cb980d97d73a7059fdad1ec93746fa8de78f68ea.tar.gz
nixpkgs-cb980d97d73a7059fdad1ec93746fa8de78f68ea.tar.bz2
nixpkgs-cb980d97d73a7059fdad1ec93746fa8de78f68ea.tar.lz
nixpkgs-cb980d97d73a7059fdad1ec93746fa8de78f68ea.tar.xz
nixpkgs-cb980d97d73a7059fdad1ec93746fa8de78f68ea.tar.zst
nixpkgs-cb980d97d73a7059fdad1ec93746fa8de78f68ea.zip
added glsurf package
Diffstat (limited to 'pkgs/applications/science/math/glsurf')
-rw-r--r--pkgs/applications/science/math/glsurf/default.nix32
1 files changed, 32 insertions, 0 deletions
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";
+  };
+}