about summary refs log tree commit diff
path: root/pkgs/tools/graphics/povray
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-05-14 08:49:46 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-05-14 08:49:46 +0000
commit5ee7338cd2a67567482ac1af16a9704866ac987f (patch)
treeedeee70eacb7948d16f4eadc3dd2d379e404c8b9 /pkgs/tools/graphics/povray
parentf8a30d60d0563e02c5982094b271a3ae2c97ccbe (diff)
Adding povray
svn path=/nixpkgs/trunk/; revision=15598
Diffstat (limited to 'pkgs/tools/graphics/povray')
-rw-r--r--pkgs/tools/graphics/povray/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/povray/default.nix b/pkgs/tools/graphics/povray/default.nix
new file mode 100644
index 0000000000000..12f307ca9def8
--- /dev/null
+++ b/pkgs/tools/graphics/povray/default.nix
@@ -0,0 +1,25 @@
+{stdenv, fetchurl}:
+
+stdenv.mkDerivation {
+  name = "povray-3.6";
+
+  src = fetchurl {
+    url = http://www.povray.org/redirect/www.povray.org/ftp/pub/povray/Official/Unix/povray-3.6.tar.bz2;
+    sha256 = "0wvsfgkybx28mj2p76nnsq9rdq50192g5qb7d0xk81s8skn7z2jf";
+  };
+
+  # the installPhase wants to put files into $HOME. I let it put the files
+  # to $TMPDIR, so they don't get into the $out
+  patchPhase = ''
+    sed -i -e 's/^povconfuser.*/povconfuser=$(TMPDIR)\/povray/' Makefile.{am,in};
+  '';
+  # I didn't use configureFlags because I couldn't pass the quotes properly
+  # for the COMPILED_BY.
+  configurePhase = "./configure --prefix=$out COMPILED_BY=\"nix\"";
+  
+  meta = {
+    homepage = http://www.povray.org/;
+    description = "Persistence of Vision Raytracer";
+    license = "free";
+  };
+}