nixpkgs/pkgs/applications/science/math/glsurf/default.nix

33 lines
954 B
Nix
Raw Normal View History

2015-06-18 01:12:53 +02:00
{ stdenv, fetchdarcs, ocaml, findlib, lablgl, camlimages, mesa, freeglut, ocaml_mysql, mysql, mlgmp, mpfr, gmp, libtiff, libjpeg, libpng, giflib }:
2013-06-16 22:27:14 +02:00
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";
rev = "3.3";
2015-06-18 01:12:53 +02:00
sha256 = "0ljvvzz31j7l8rvsv63x1kj70nhw3al3k294m79hpmwjvym1mzfa";
2013-06-16 22:27:14 +02:00
};
buildInputs = [ ocaml findlib freeglut mesa
2015-06-18 01:12:53 +02:00
lablgl camlimages ocaml_mysql mysql.lib mlgmp mpfr gmp
libtiff libjpeg libpng giflib ];
2013-06-16 22:27:14 +02: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;
description = "A program to draw implicit surfaces and curves";
2016-09-19 19:04:25 +02:00
broken = true;
2013-06-16 22:27:14 +02:00
};
}