aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/qhull
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-04-08 20:06:03 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-04-08 20:06:03 +0000
commit9f2a2a6a84f5c7d18f7684e6d0e7f349d6a1a503 (patch)
treef6609eab07c878fbc8f06d5cda61a13269bd82f0 /pkgs/development/libraries/qhull
parent813a3b6c6d761f4d472f45515ada421972f4f137 (diff)
Adding qhull, and updating octaves.
svn path=/nixpkgs/trunk/; revision=14955
Diffstat (limited to 'pkgs/development/libraries/qhull')
-rw-r--r--pkgs/development/libraries/qhull/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/libraries/qhull/default.nix b/pkgs/development/libraries/qhull/default.nix
new file mode 100644
index 000000000000..522c0cb75358
--- /dev/null
+++ b/pkgs/development/libraries/qhull/default.nix
@@ -0,0 +1,33 @@
+{stdenv, fetchurl}:
+
+stdenv.mkDerivation {
+ name = "qhull-2003.1";
+ src = fetchurl {
+ url = http://www.qhull.org/download/qhull-2003.1-src.tgz;
+ sha256 = "1ah6yhh8qxqmvjcpmijibxcw8gjwvdcrb9g7j2rkawazq95a2j0s";
+ };
+
+ NIX_CFLAGS_COMPILE = "-fno-strict-aliasing " +
+ (if stdenv.system == "x86_64-linux" then "-fPIC" else "");
+
+ patchPhase = ''
+ cd src
+ sed -i -e "s@/usr/local@$out@" Makefile;
+ sed -i -e "s@man/man1@share/man/man1@" Makefile;
+ '';
+
+ installPhase = ''
+ ensureDir $out/bin
+ ensureDir $out/include/qhull
+ ensureDir $out/lib
+ ensureDir $out/share/man/man1
+ cp *.h $out/include/qhull
+ cp libqhull.a $out/lib
+ '';
+
+ meta = {
+ homepage = http://www.qhull.org/;
+ description = "Computes the convex hull, Delaunay triangulation, ...";
+ license = "free";
+ };
+}