2017-03-13 01:35:34 +00:00
|
|
|
{stdenv, fetchFromGitHub, flex, bison, cmake, git, zlib}:
|
2016-05-21 22:33:19 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2017-03-13 01:35:34 +00:00
|
|
|
version = "2017-01-12";
|
2016-05-21 22:33:19 +00:00
|
|
|
name = "pbrt-v3-${version}";
|
|
|
|
|
2017-03-13 01:35:34 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "35b6da3429526f2026fe5e5ebaf36d593e113028";
|
|
|
|
owner = "mmp";
|
|
|
|
repo = "pbrt-v3";
|
|
|
|
sha256 = "10lvbph13p6ilzqb8sgrvn9gg1zmi8wpy3hhjbqp8dnsa4x0mhj7";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
2016-05-21 22:33:19 +00:00
|
|
|
|
|
|
|
buildInputs = [ git flex bison cmake zlib ];
|
|
|
|
|
2017-03-13 01:35:34 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://pbrt.org;
|
2016-05-21 22:33:19 +00:00
|
|
|
description = "The renderer described in the third edition of the book 'Physically Based Rendering: From Theory To Implementation'";
|
2017-03-13 01:35:34 +00:00
|
|
|
platforms = platforms.linux ;
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = [ maintainers.juliendehos ];
|
2016-05-21 22:33:19 +00:00
|
|
|
priority = 10;
|
|
|
|
};
|
|
|
|
}
|