forked from mirrors/nixpkgs
ea3769ec81
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/povray/versions. These checks were done: - built on NixOS - /nix/store/hl6rn2fjd9h2g4vks7hrm3yv2f1zh3yc-povray-3.7.0.8/bin/povray passed the binary check. - 1 of 1 passed binary check by having a zero exit code. - 0 of 1 passed binary check by having the new version present in output. - found 3.7.0.8 with grep in /nix/store/hl6rn2fjd9h2g4vks7hrm3yv2f1zh3yc-povray-3.7.0.8 - directory tree listing: https://gist.github.com/d35bed4b147aefbe2b8c6e42bdf56ccb - du listing: https://gist.github.com/75bee836a81741aa901a3677fb40aa16
50 lines
1.5 KiB
Nix
50 lines
1.5 KiB
Nix
{ stdenv, fetchFromGitHub, autoconf, automake, boost
|
|
, zlib, libpng, libjpeg, libtiff, x11, SDL
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "povray-${version}";
|
|
version = "3.7.0.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "POV-Ray";
|
|
repo = "povray";
|
|
rev = "v${version}";
|
|
sha256 = "1q114n4m3r7qy3yn954fq7p46rg7ypdax5fazxr9yj1jklf1lh6z";
|
|
};
|
|
|
|
|
|
buildInputs = [ autoconf automake boost zlib libpng libjpeg libtiff x11 SDL ];
|
|
|
|
# the installPhase wants to put files into $HOME. I let it put the files
|
|
# to $TMPDIR, so they don't get into the $out
|
|
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}
|
|
'';
|
|
|
|
configureFlags = [ "COMPILED_BY='nix'" "--with-boost-thread=boost_thread" "--with-x" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
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
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://www.povray.org/;
|
|
description = "Persistence of Vision Raytracer";
|
|
license = licenses.free;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|