2014-10-09 19:09:35 +02:00
|
|
|
{stdenv, fetchgit, autoconf, automake, boost, zlib, libpng, libjpeg, libtiff}:
|
2009-05-14 10:49:46 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-08-04 13:03:25 +02:00
|
|
|
name = "povray-3.7";
|
2009-05-14 10:49:46 +02:00
|
|
|
|
2014-08-04 13:03:25 +02:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/POV-Ray/povray.git";
|
|
|
|
rev = "39ce8a24e50651904010dda15872d63be15d7c37";
|
|
|
|
sha256 = "0d56631d9daacb8967ed359025f56acf0bd505d1d9e752859e8ff8656ae72d20";
|
2009-05-14 10:49:46 +02:00
|
|
|
};
|
|
|
|
|
2014-08-04 13:03:25 +02:00
|
|
|
|
|
|
|
buildInputs = [ autoconf automake boost zlib libpng libjpeg libtiff ];
|
|
|
|
|
2009-05-14 10:49:46 +02:00
|
|
|
# the installPhase wants to put files into $HOME. I let it put the files
|
|
|
|
# to $TMPDIR, so they don't get into the $out
|
2014-08-04 13:03:25 +02:00
|
|
|
postPatch = '' cd unix
|
|
|
|
./prebuild.sh
|
|
|
|
cd ..
|
|
|
|
sed -i -e 's/^povconfuser.*/povconfuser=$(TMPDIR)\/povray/' Makefile.{am,in}
|
|
|
|
sed -i -e 's/^povuser.*/povuser=$(TMPDIR)\/.povray/' Makefile.{am,in}
|
|
|
|
sed -i -e 's/^povowner.*/povowner=nobody/' Makefile.{am,in}
|
|
|
|
sed -i -e 's/^povgroup.*/povgroup=nogroup/' Makefile.{am,in}
|
|
|
|
'';
|
|
|
|
|
2014-10-01 21:55:40 +02:00
|
|
|
configureFlags = [ "COMPILED_BY='nix'" ];
|
2014-08-04 13:03:25 +02:00
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir "$TMP/bin"
|
|
|
|
for i in chown chgrp; do
|
|
|
|
echo '#!/bin/sh' >> "$TMP/bin/$i"
|
|
|
|
chmod +x "$TMP/bin/$i"
|
|
|
|
PATH="$TMP/bin:$PATH"
|
|
|
|
done
|
2009-05-14 10:49:46 +02:00
|
|
|
'';
|
2014-11-06 01:44:33 +01:00
|
|
|
|
2009-05-14 10:49:46 +02:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.povray.org/;
|
|
|
|
description = "Persistence of Vision Raytracer";
|
2014-11-06 01:44:33 +01:00
|
|
|
license = stdenv.lib.licenses.free;
|
2009-05-14 10:49:46 +02:00
|
|
|
};
|
|
|
|
}
|